Disable pagination on frontpage

Make use of the WordPress template hierarchy, by either having a home.php – home page – or a front-page.php – front page – to display the site home/front. Read the WordPress codex article Creating a Static Front Page for an insight on how to do it and some explanation about the differences. Do not use … Read more

Post as frontpage – avoid duplicate content

Your best way would be to redirect to the theme’s 404 page in the event that the page being loaded matches the slug that you are referring to. Try this: function check_undesirable_page(){ global $post; if(is_page() && ($post->post_name==”YOUR-SLUG-HERE”)){ global $wp_query; $wp_query->set_404(); status_header(404); } } add_action( ‘wp’, ‘check_undesirable_page’ ); EDIT: Also a good idea to incorporate the … Read more

How to remove related post from home page

Simply if(!is_home() && !is_front_page()) add_action( ‘thesis_hook_after_post’, ‘my_related_posts’ ); will do that for you. It will not do the add_action() when we are at the home page or not any front page. If it doesn’t work for you, may be you need to contact with the Thesis team.

Echo Most Recent Sticky Post in Loop?

If it’s your main loop, you could add this to your function.php: function custom_pre_get_posts($query) { if($query->is_main_query() && /* is sticky conditional tag(sorry I need to check what is that) */) { $query->set(‘posts_per_page’, “1”); } } add_action(‘pre_get_posts’, ‘custom_pre_get_posts’); Or you can make a new WP_Query instance in the theme file: <?php $onePost = new WP_Query(array( ‘post_type’ … Read more

Pagination not working in home page

<?php $the_query = new WP_Query( ‘cat=-7,-3′ ); ?> is the cause of your problems, WordPress has taken care of the pagination, then you’ve thrown it away and not told your new query anything about the page you’re currently on, so it defaults to the first. It’s equivalent to asking someone for a cup of tea, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)