Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    Thanks for reaching here.

    Please try below code.
    <?php echo do_shortcode('[fpc_post_block design="design-2" category="72" Show_category_name="false" limit="3"]'); ?>

    Category parameter only pass category id.(Ex. category=”72″)

    Note:- Please do not copy and paste the shortcode parameter because if cause the quote(“”) issue writes manually.

    Please let me know if you have any other query.

    If you like our plugin please give you important Rate and Review Here…

    Thanks,

    Thread Starter perry1112

    (@perry1112)

    Not work, the featured post also post in other category page.
    Thanks.

    Plugin Support Rafik

    (@rafikwp)

    Hello,

    I guess you want only these featured post of a current category on the archive page right? but this way over plugin does not work.
    You need to pass current category id in the shortcode.

    You can get a current category and pass this category id dynamically this way
    Try below code.

    <?php 
    
    $cat_id = get_queried_object_id();
    echo do_shortcode('[fpc_post_block design="design-2" category="'.$cat_id.'" Show_category_name="false" limit="3"]'); 
    
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot Select the Post by Category’ is closed to new replies.