MCosmin
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Related Posts] "Edit Related Posts" Removed?Thank you for your answer, I succeeded to modify the button.
Forum: Plugins
In reply to: [WordPress Related Posts] "Edit Related Posts" Removed?I can’t find wp_rp_footer or wp_rp_edit class for this button. In what file you set these classes? I want to change the orage color of the button.
Thanks mbigul. This function works:
// Show posts of 'post', 'page' and 'movie' post types on home page add_action( 'pre_get_posts', 'add_my_post_types_to_query' ); function add_my_post_types_to_query( $query ) { if ( is_home() && $query->is_main_query() ) $query->set( 'post_type', array( 'post', 'page', 'movie' ) ); return $query; }
Thank you a lot!
Forum: Plugins
In reply to: [Custom Post Type UI] I can't view custom posts from a categoryThanks Michael.
Forum: Plugins
In reply to: [Custom Post Type UI] I can't view custom posts from a categoryNo, I can’t see custom posts with only the code inserted in function.php
But I succeeded to view custom posts in home page inserting
<?php query_posts( 'post_type=movies'); ?>
in index.php.
But I can’t see original posts anymore. ??Can I see in the same page both posts: custom and original?
Thank you. I sent you an email with more details.
So on my home page or categories pages I can’t see custom posts, only original posts. I Don’t know what to do to see custom posts in my website.
Forum: Plugins
In reply to: [Custom Post Type UI] I can't view custom posts from a categoryI read this tutorial. It said to put this code in function.php
—–
add_filter( ‘pre_get_posts’, ‘my_get_posts’ );
function my_get_posts( $query ) {
if ( is_home() && false == $query->query_vars[‘suppress_filters’] )
$query->set( ‘post_type’, array( ‘post’, ‘page’, ‘album’, ‘movies’, ‘attachment’ ) );
return $query;
}
—–I wrote this code in function.php and I created a post type with the name movies. But I still can’t see custom post in my home page, only original posts. Can you tell me what should I do?
Forum: Plugins
In reply to: [Custom Post Type UI] I can't view custom posts from a categoryThanks a lot! I will check the tutorial.
Forum: Plugins
In reply to: [Custom Post Type UI] I can't view custom posts from a categoryIt is a little difficult for me. ??
But can I see original post and also custom post in the same category?