I want to duplicate my category pages to show two versions: one with ads and one without. (I have to show clients a page without ads).

For example I want to make a version of this category without ads:


I tried to copy the code in the category page into a template and use that as the template for a new page, but it wouldn't show the posts.

Any advice most welcome. thank you

  • can you post the code you have? – rudtek Mar 16 '17 at 16:59
  • Unfortunately the code is quite complex, as there is a lot of customisation on it. – Mark Devlin Mar 17 '17 at 15:08
  • okay well can you at least tell how you determine whether a user is a client or not? – rudtek Mar 17 '17 at 15:40
  • I decided to try another method. Thank you for checking in. – Mark Devlin Mar 17 '17 at 19:07

What you can do is, you can create an account and give those account detail to your client to login.

And whenever your client is login you can check that and don't display ad to that user. And else it will be visible to everyone.

So we dont need to duplicate categories at all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.