Tag Info

Hot answers tagged

3

You can use PHP get method to process these variables. <?php if( $_GET['action'] == 'discussion' ) { ?> It's True. <?php } else { ?> It's False. <?php { ?>


1

The problem is that wp_reset_postdata attempts to restore $post from the main $wp_query, but on post.php in admin, $post isn't populated from $wp_query, so wp_reset_postdata fails to restore it. The solution is to use get_posts and a foreach instead of WP_Query and the loop.


1

You need to get $current_cityinfo first. As in: $current_cityinfo = get_option('current_cityinfo'); Or add this code: global $current_cityinfo; above your return line.


1

You have to use single_product_large_thumbnail_size filter for Single Product page. something like: function custom_product_large_thumbnail_size() { return 'gallery'; } add_filter('single_product_large_thumbnail_size', 'custom_product_large_thumbnail_size');


1

If that is the sum of the code for that file then the only place near the bottom is that do_action-- do_action( 'shiroi_after_post_body_content' );-- which looks to be what you want. function test_new_action() { echo 'Howdy'; } add_action('shiroi_after_post_body_content','test_new_action'); Depending upon how this file is included there might be other ...



Only top voted, non community-wiki answers of a minimum length are eligible