WordPress.org

Ready to get started?Download WordPress

Forums

Page2cat: Category, Pages & Posts Shortcodes
[resolved] Blank page on category page (3 posts)

  1. sytseelzinga
    Member
    Posted 1 year ago #

    Hi,

    I just updated the plugin and now I get a white screen on my category page.

    I'de created a category-animals.php in my theme folder and use the:
    <?php do_shortcode('[showsingle pageid="876"]'); ?>

    to show pageid 876, but with no succes.

    I've tried setting the category-animals to page 876 via the page itself, but with no result... it keeps giving a white screen.

    Could you try to help me out? Thanks!

    http://wordpress.org/extend/plugins/page2cat/

  2. Paolo T. (pixline)
    Member
    Plugin Author

    Posted 1 year ago #

    do_shortcode() only returns values, so you have to print them out:

    <?php echo do_shortcode(...); ?>

    http://codex.wordpress.org/Function_Reference/do_shortcode

  3. sytseelzinga
    Member
    Posted 1 year ago #

    That worked for me! Thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic