Conditionals in repeater template
-
Hi there
Is there a way I can use conditionals to check which archive page a user is on when loading more posts with ALM? I need to display either the date, custom post type, or custom taxonomy term for each post – depending on which post type or taxo archive the user is on – but I can’t seem to get conditionals like these to work in the repeater template:
if (is_post_type_archive( 'news' )
if (is_tax( 'news_type', 'blog' )
Any advice you could provide would be much appreciated!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditionals in repeater template’ is closed to new replies.