Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-28-2011, 09:05 AM   PM User | #1
bekk1n
New to the CF scene

 
Join Date: Jan 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
bekk1n is an unknown quantity at this point
using a add_action in wordpress to add php to sidebar or comments or below the Post

Hello,

I currently have a snippet that places code into the header of wordpress:
PHP Code:
if (!function_exists('function_name')){function function_name(){Insert Code Here}add_action('wp_head''function_name');} 
Does anyone know if I can use this modified to place php code into the sidebar? or Comments? or below the Post?

Or would I need a completely different snippet for it to work?

Last edited by bekk1n; 12-28-2011 at 12:50 PM..
bekk1n is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 11:26 PM.


Advertisement
Log in to turn off these ads.