Problem solved, it was caused by “Cost & Reports for WooCommerce” plugin “By Consortia”.
Hey Mate it works just fine 🙂
You have made my day thanks a lot!!!
Hi
Thanks for your reply this exactly what i want… however the code you have sent isn’t working..
I have uploaded this to functions.php
/* Hook our querying function into WordPress. */
add_action( 'pre_get_posts', 'derrtass_pre_get_posts' );
function derrtass_pre_get_posts( $query ) {
global $post;
$page_slug = $post->post_name;
// Get a post with the same slug as this page
if ( $query->is_page( $page_name ) ) {
$query->set( 'name', $page_name );
$query->set( 'posts_per_page', 1 );
}
}
And used loop in template to display post….
It’s not working I’m afraid