WordPress.org

Ready to get started?Download WordPress

Forums

Featured Posts Grid
Shortcodes not working (2 posts)

  1. jfculhane
    Member
    Posted 1 year ago #

    I cannot seem to sort anything with the shortcodes provided in the Installation page.
    Example: [fpg cat="-3" tag="featured"]

    What is the exact code you need in the .php template for the shortcodes to work?
    Is it just the main example code?
    <?php if (function_exists('fpg_show')) { echo fpg_show(NULL); } ?>

    Is the only way to sort posts via hardcoding the php page with the categories or tags?
    This worked fine.

    Are there conflicts with other plugins?

    Thanks.

    http://wordpress.org/extend/plugins/featured-posts-grid/

  2. Chaser324
    Member
    Plugin Author

    Posted 1 year ago #

    To insert the FPG into a .php template, you should not use the shortcode. Use the full PHP code:

    <?php if (function_exists('fpg_show')) { echo fpg_show(NULL); } ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags