Showing latest post without 301 redirect

Custom query loops and custom page templates are your friends. Ditch the redirect function and on your home page template do something like this: <?php $args = array( ‘post_status’ => ‘publish’, ‘post_type’ => ‘seller’, ‘posts_per_page’ => 1 ); query_posts( $args ); // the Loop while (have_posts()) : the_post(); the_content( ); endwhile; ?> You can find … Read more

My new WordPress theme based on the TwentyEleven theme doesn’t display the front page OR the blog page

First of all Create Template and Assign Template to Static page to which u have to display as a home page. Example of template: <?php /** * Template Name: Home Page Template * */ get_header(); ?> <div class=”mid-part cm-fl”> <div id=”container”> <div id=”content” role=”main”> <div class=”left-section”> <?php if ( have_posts() ) while ( have_posts() ) … Read more

Overwrite category head title

You can use the wp_title filter to modify the output of the wp_title function. quick example based on the example from Codex: add_filter( ‘wp_title’, ‘wpa66574_title_filter’, 10, 3 ); function wpa66574_title_filter( $title, $sep, $seplocation ) { // account for $seplocation $left_sep = ( $seplocation != ‘right’ ? ‘ ‘ . $sep . ‘ ‘ : ” … Read more

I have no images in an activated wp theme

images folder is inside theme’s folder. But relative URLs do not work that way. They are relative to the URL not to the filesystem path. Your problem is here: <img id=”thinker01″ src=”https://wordpress.stackexchange.com/questions/74779/images/thinker01.png” width=”120″ height=”163″ /> If you look at the request (via HttpFox or other means) you will see that the browser is looking for … Read more

A /proc folder in wp-content?

Check the .htaccess file first, and the Settings > General area first to make sure it’s not a level of security-by-obscurity that one of the initial users tried to implement. The easiest way is to change the name of the folder then see if your site breaks, since you can rename a folder a lot … Read more