Tagged Questions
1
vote
2answers
62 views
Same Conditionals Not Working on Two Different Hooks
Everyone!
I am new to WP and trying to build a plugin. I have the following codes working properly:
add_filter('the_content', 'say_hello');
function say_hello($content){
if(is_single() || ...
1
vote
1answer
512 views
functions.php conditional tag - only show in single.php?
//Geo Map
add_action( 'woo_post_inside_after', 'my_geo_mashup' );
function my_geo_mashup() {
global $post;
if ( in_category('listings') ) {
echo GeoMashup::map();
}
}
Works to ...