StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:49 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.