Viewing 1 replies (of 1 total)
  • Plugin Author rtowebsites

    (@rtowebsites)

    Hello @alriksson,

    you have to add a new dynamic tag for that. Something like page-type, that returns you post/page/cpt or whatever.

    You also can create a shortcode for that and use with the new version.

    But this Plugin will not add any more dynamic tags, since it is just for the conditional display based on dynamic tags.

    You could add something like this to your functions.php

    
    function get_current_post_type() {
        return get_post_type();
    }
    add_shortcode('post-type', 'get_current_post_type');
    

    in dynamic conditions you could use the dynamic tag “Shortcode” with the value “[post-type]” and than check for the value. We tested it with post and page.

    We mark this issue as resolved. If u need any further you can just write here again.

Viewing 1 replies (of 1 total)
  • The topic ‘Support conditions for page, post and cpt’ is closed to new replies.