Results 1 to 1 of 1
-
22nd Jan 2012, 03:24 PM #1OPMemberWebsite's:
hentai-ddl.orgCustom post type as normal posts
I created custom post type and i would like to use it the same way as the regular posts. I managed to add them on the first page by adding this code to the functions.php file
Code:add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() ) $query->set( 'post_type', array( 'post', 'anime', '13' ) ); return $query; }
How can i make them the same?
First post is custom type others are normal.
Site: Anime-Pirate.org
Theme: Suffusion
http://wordpress.org/extend/themes/suffusionCK13 Reviewed by CK13 on . Custom post type as normal posts I created custom post type and i would like to use it the same way as the regular posts. I managed to add them on the first page by adding this code to the functions.php file add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() ) $query->set( 'post_type', array( 'post', 'anime', '13' ) ); return $query; } but it a little different from normal posts. Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Advance Post Generator 1.2.5 Beta (With Post Type)
By WaReZ in forum Webmaster ResourcesReplies: 21Last Post: 21st Jun 2012, 12:35 PM -
Custom post in DLE
By Zeus in forum DLEReplies: 3Last Post: 9th Apr 2012, 01:39 PM -
[Selling] Any Type Plugin Contect me (rapidleech, curl, php upload, Personal Site Post Plugin )
By jpavsex in forum Completed TransactionsReplies: 15Last Post: 20th Dec 2011, 03:30 AM -
Can someone post me a rapidshare type clone?
By nichole in forum File Host DiscussionReplies: 0Last Post: 10th Nov 2011, 09:53 AM -
Looking for 2*,3*, 4* forums to post my porn posts
By axxo786 in forum Community CooperativeReplies: 0Last Post: 27th Jun 2010, 10:49 AM
themaPoster - post to forums and...
Version 5.23 released. Open older version (or...