resizing of thumbnails not working
This may be because thumbnails of all image sizes not generated,try Regenerate Thumbnails Important Link: How to Regenerate Thumbnails or New Image Sizes in WordPress
This may be because thumbnails of all image sizes not generated,try Regenerate Thumbnails Important Link: How to Regenerate Thumbnails or New Image Sizes in WordPress
Did you try BulkPress Plugin? Easily add and manage multiple categories, pages, custom taxonomy terms and custom post type posts. Create and reorder terms
Use get_post_type() to check the correct post type and in_category( ‘blog’ ) to check the category: function get_author_bio ($content=””){ if ( ‘post’ !== get_post_type() or ! in_category( ‘blog’ ) ) return $content;
Assuming that this– add_filter( ‘kandombe_theme_thumb’, ‘kandombe_lazy_loads’);— is the line/hook you are talking about. You don’t hook to functions. That is not how it works. Hooks have to be intentionally created with apply_filters or do_action. Your code would have to be written like this for that to work: function kandombe_theme_thumb($id, $width, $height, $align=”) { //some code … Read more
since you want to edit title attribute. goto functions.php and search wp_title, on line 277 you find add_filter(‘wp_title’, ‘suffusion_modify_title’, 10, 3); search for callback fx suffusion_modify_title in /suffusion/functions/filters.php, on line 664 you find suffusion_modify_title fx which i think handle titles.
I don’t think there is one. Escaping is harder than unescaping (you have decide what exactly to escape and where). Just use PHP html_entity_decode function.
Aahhh, it’s a typo, I guess. There is no parameter called posts__not_in. It’s called post__not_in. So you should change your code to: function dark_delight_get_related_posts(){ $post = get_post(); $args = array( ‘posts_per_page’ => 4, ‘ignore_sticky_posts’ => true, ‘post__not_in’ => array($post->ID), // post and not posts ); $categories = get_the_category(); if( !empty($categories) ){ $category = array_shift( $categories … Read more
Use wp_enqueue_script. You assign a name to your js file when enqueued, and it will stop a file from being enqueued multiple times. Right now your JS is simple enough, but as it gets more complex, it’s better to have it outside in it’s on .js file. add_action( ‘wp_enqueue_scripts’, ‘add_my_js’ ); function add_my_js() { wp_enqueue_script( … Read more
One thing, that is off topic, but catches my eye at first glance, is that the php-code and the div-tag in the template are nested in a wrong way. They should be nested like this: <div class=”twocol-one”> <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘fox_home_news_widget’) ) ; ?> <p>this is a test</p> <?php endif;?> </div> And you … Read more
Did you go to Settings >> General and set the correct offset for your timezone? To get the date: <?php $date = get_the_time(‘dmY’, $post->ID); ?> To print the date: <?php the_date(‘dmY’); ?> Both need to be within the Loop!