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, 2017 at 16:59
  • Unfortunately the code is quite complex, as there is a lot of customisation on it. Mar 17, 2017 at 15:08
  • okay well can you at least tell how you determine whether a user is a client or not?
    – rudtek
    Mar 17, 2017 at 15:40
  • I decided to try another method. Thank you for checking in. Mar 17, 2017 at 19:07

1 Answer 1


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 and acknowledge you have read our privacy policy.

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