how can display a post on home screen without images

This should help you.. <?php function remove_images( $content ) { //Run only on the front page, in your case the homepage if(is_front_page()) { //Remove the images $postOutput = preg_replace(‘/<img\b[^>]++>/i’,”, $content); //Get the first 200 characters only, you can change the number if you want $postOutput = wp_html_excerpt($postOutput, 200); return $postOutput; } return $content; } add_filter( … Read more

How to show next/prev link, when it’s not active?

If you check the code for previous_posts_link function in link-template.php file i.e. function previous_posts_link( $label = null ) { echo get_previous_posts_link( $label ); } // get_previous_posts_link function get_previous_posts_link( $label = null ) { global $paged; if ( null === $label ) $label = __( ‘&laquo; Previous Page’ ); if ( !is_single() && $paged > 1 … Read more

Adding if statement into the_content()

I don’t know exactly how your code works BUT I do know this. If you only have one loop on the page-template you could use query_posts(); but if you have more than 1 loop it will screw up the code, even if you reset it. I would recommend you to use WP_Query like this: <?php … Read more

Direct some posts to only appear on a specific page

Your Home Page is displayed with index.php or front-page.php in WordPress. PLAN B: First of all, you have to create a category for Technical Notes page (i.e.: Category Name = “Technical Notes”). Now the plan is, all the posts, by default will be displayed on the homepage by default (as it is doing now), excluding … Read more

How to create several Post pages

well, you must understand what “category” is and what a “post” is … you can imagine WP as a collection of posts . those “POSTS” are put inside “CATEGORIES” like books in a library .. The Categories are only for classification reasons. By themselves they are nothing. now , the “categories” page in wordpress, is … Read more