Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Conditional code AND a shortcode

$
0
0

Replies: 0

My LMS uses a short code to display Previous/Next buttons. I DO NOT want to show these buttons on child pages for certain parents.

How can I add this code to Genesis Simple Hooks?

If I add just the shortcode,
[accessally_course_navigation prev_button='Previous' next_button='Next']
it works just fine. Previous/next buttons show on every lesson page.

I must have syntax wrong or I cannot put shortcodes inside conditional statements. Is there a way to resolve this?


Viewing all articles
Browse latest Browse all 59525

Trending Articles