Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #9534


    I have installed the Featured Posts Grid plugin for WordPress. To make this plugin work, I have to place a few lines of php code to my “desired template location”. But how do I add this code to my Simple Catch Pro theme, without losing it after theme updates?

    This is what the theme site writes >

    To use this plugin to display the most recent posts in any category and with any tag:

    Copy and paste the code below to your desired template location:

    <?php if (function_exists(‘fpg_show’)) {
    $args = array(
    ‘cat’ => ”,/* comma separated list of category ids to include (put ‘-‘ in front of ids to exclude) */
    ‘tag’ => ” /* comma separated list tag slugs to include */);
    echo fpg_show($args);


    @Jos: Where are you trying to add this functions and why are you using this plugin to add code.

    To add any code in the theme core file, you need to build child theme and then edit the code so you won’t lose your customization when you perform updates.


    @Sakin: okay, maybe it’s better to explain my idea from the start.

    On my new blog there’s a page called ‘Sketches’. Every time I add a post to my blog with the tag ‘sketch’, I want the featured image of that post to appear on the page ‘Sketches’ in a responsive grid. Just think of Pinterest, that’s the way I want my page ‘Sketches’ to look.

    This is the page: http://www.brimbrom.com/sketches/

    Your solution with the child theme sounds plausible, but I have no idea how to do that. Is it just as simple as making a copy of the core file (index.php)? And where should I place such a copy and how does my blog know which file to use?


    @Jos: the customization that you are asking is beyond the scope of forum. You will need to hire developer to do that for you. Try searching at http://jobs.wordpress.net/ or elance.com or odesk.com

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Featured Post Grid plugin & Simple Catch Pro’ is closed to new replies.