Support » Plugin: Category to Pages WUD » Could you provide the php to Show the Category/Tag Title on the Page.

  • Resolved outcold

    (@outcold)


    I’d like to show the page tags elsewhere (e.g. not “Above the Page Content” or “Below the Page Title”). Could you possibly give me a php code snippet to do this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AccountClosed

    (@wistudatbe)

    Hello,
    It will be possible from version 2.4.2 on.
    I will provide a new shortcode and you will be able to place it anywhere in your theme code.
    The new shortcode will be: [currentcattag] and the code to use it in your PHP will be:

    
    $terms = get_the_terms( $post->ID , 'categories' );
    if(empty(!$terms)){
        echo do_shortcode('[currentcattag]');
    }
    

    So please be patient for the next version and enjoy my plugin!

    Regards,
    Danny

    Thank you, and thanks for the awesome plugin.

    Plugin Author AccountClosed

    (@wistudatbe)

    Thanks!
    The new version 2.42 is released.
    Regards, Danny

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Could you provide the php to Show the Category/Tag Title on the Page.’ is closed to new replies.