Conditional visibility

Hi all,

I have a blog index page as an Archive Layout. Part of that template has a pagination element. Immediately above that element is some headline text.

Some of the category pages don’t currently have enough posts for the pagination to kick in. For those pages, is there a way to automatically hide the headline text?

Hey @KEXINO,

We can’t tell if it’s possible without knowing the exact setup. Please provide the following information a Secure Note.

  • Page URL where we can see the headline text above the pagination.
  • WordPress Login URL
  • WordPress admin level username and password

You can find the Secure Note button at the bottom of your posts.

.

Thanks for getting back to me so quickly.

Creds are in the SN.

Hey @KEXINO,

To show/hide an element depending on the number of items or paged items, you can use {{dc:looper:total_pages}} > 1 as your condition.

image

Best Regards.