WordPress Loop

Ends in (days)

1164

Fixed Price

$$

Posted: 3 years ago

Proposals:
0

Remote

#689387

Archived

0

0

Description

Experience Level: Intermediate

Hello Minty.

I have a job for you. Having problems with a WP loop.

Ok what I currently have to do is create a new archive for each taxonomy term and manually change the term in each archive file. So in the attached version (uploaded as html), the archive file is 'taxonomy-voucher-codes-chickens.php'.

What I would like to do is have just 1 archive file called 'taxonomy-voucher-codes.php' which pulls in the posts from one term depending on the url.

So www.example.com/voucher-codes/chickens will pull in posts from the term 'chickens' and www.example.com/voucher-codes/cows will pull in posts from the term 'cows', and so on.

There is another complication as I need two loops one from the 'codes' post type and one from the 'reviews' post type.