Tagged: plugin
- This topic has 3 replies, 2 voices, and was last updated 10 years, 11 months ago by Sakin.
-
AuthorPosts
-
May 28, 2013 at 12:41 am #9534JosParticipant
Hello,
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);
}?>May 28, 2013 at 11:41 pm #9566SakinKeymaster@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.
May 29, 2013 at 2:01 pm #9614JosParticipant@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?
May 30, 2013 at 12:15 am #9629SakinKeymaster@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
-
AuthorPosts
- The topic ‘Featured Post Grid plugin & Simple Catch Pro’ is closed to new replies.