View Single Post
  #1  
Old 11-10-2012, 12:16 AM
vbrasil vbrasil is offline
Registered User
Genesis Member
 
Join Date: Apr 2012
Posts: 8
Default how to add an action to a specific page or post but no all pages or posts?

I am creating a simple child theme for a site with a few pages.

On this child theme I am trying to implement the use of a plugin, skitter_slideshow. Its a slider plugin that is invoked when you add the following code to posts.php in wordpress:

<?php if ( function_exists('show_skitter') ) { show_skitter(); } ?>

On the Genesis Framework I have added the following code to my child theme's functions.php file:


if ( function_exists('show_skitter')) add_action( 'genesis_after_post_content', 'show_skitter');

This works and invokes the plugin slider. However, it does it for every post and page.

My objective is to just have it display on a particular page or post and not any of the other pages or posts in the site.

Any suggestions on how I can do that within the framework.
__________________
Vinicius Brasil
http://www.mountainviewrealestateguy.com