wp_title() empty on a static front page

I’m trying to use wp_title() to create a heading for my pages, but I’m using a static front page and, while all of the other pages render the title properly, the front page won’t. This is what I’m working with: <div id=”main-content”> <h1><?php wp_title(“”, true); ?></h1> <?php while( have_posts() ) : the_post() ?> <div class=”pagecontent”> … Read more

Pagination not Working on only Front page on latest verson of WordPress

My pagination is not working on front page for custom post type, its working properly when is not select for front page. My code in functions.php /** pagination **/ function fruit_pagination($pages=””, $range = 5) { $fruit_showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages = $wp_query->max_num_pages; … Read more

How to display thumbnail and excerpt of a page on homepage?

How to display attached thumbnail and excerpt (about 200 words) of a page on homepage? <?php $page_data = get_page( 401 ); // Get page ID 401 echo ‘<h3>’. $page_data->post_title .'</h3>’; echo apply_filters(‘the_content’, $page_data->post_content); ?> I don’t know how to display attached image as thumbnail. May be i use mb_substr php function to cut the content … Read more

Frontpage pagination issue with paginate_links() function

I’m using following snippet to output pagination: // get the current page if ( get_query_var(‘paged’) ) { $current_page = get_query_var(‘paged’); } else if ( get_query_var(‘page’) ) { $current_page = get_query_var(‘page’); } else { $current_page = 1; } // structure of “format” depends on whether we’re using pretty permalinks $permalink_structure = get_option(‘permalink_structure’); $format = empty( $permalink_structure … Read more

Pagination is somewhat working on frontpage, doesn’t update when “prev” is clicked

I followed the very simple tutorial that’s on this page: http://wp.tutsplus.com/tutorials/wordpress-pagination-a-primer/ (Scroll down to “A Better Solution”) – He makes it seem so simple, and it works in that the pagination links are there and the URL changes in the address bar, but it doesn’t actually update when clicking on 2 or 3.. Site – … Read more