-
Author
-
January 8, 2016 at 15:50 #97245clynParticipant
Hi,
Kleo themeoption/ metafields / archieve link is active. I have 2 site (one of them is test) same pluging same custom post type etc. My test site show author archieve post but dont show my other real site…
I bet i did mistake somewhere, what or where should i check? I checked custom post types setting (both same)
sorry very bad english
thanks…
January 8, 2016 at 16:14 #97261sharmstrModeratorA few things to check.
1 – By default, CPTs will not show up in standard WP archives. You need to tell WP to show them.
COPY CODEfunction custom_post_author_archive( $query ) { if ( $query->is_author() ) { $query->set( 'post_type', array('your-cpt', 'post') ); } } add_action( 'pre_get_posts', 'custom_post_author_archive' );
2 – Is your CPT set up on the same on both servers? Specifically the publicly_queryable parameter?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 8, 2016 at 16:39 #97283clynParticipant1 – I did not any code on my test site but show all author archieve post (also custom post types). If i want to add this code, to where?
2 – I have SSD VDS server. So, my test site (include all kleo demo) and my real site is on same server. Does it make any problem?
January 8, 2016 at 16:41 #97288clynParticipantsorry, my test site show only post (author archieve) dont show CPT
January 8, 2016 at 16:44 #97289clynParticipantI am so sorry, some little details change everything. My real site also show normal author post. Just dont show CPT post.. what should i do? Add abve code to where?
January 8, 2016 at 16:45 #97291sharmstrModeratorTo your child theme’s functions.php file.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 8, 2016 at 16:56 #97298clynParticipant🙂 great, its working.
At the moment, you ask, “test site and real site is on same server” … Yes, test site include all kleo demo and 2 custom post types (for test but post type slug is different) … Is it problem to work on same server?
Thank you so much perfect support team…
January 8, 2016 at 17:04 #97301sharmstrModeratorI didnt ask that.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 8, 2016 at 17:16 #97305clynParticipantsorry for my bad english 🙂 , whatever, its working and solved.
Thnak you so much…
January 8, 2016 at 17:17 #97306sharmstrModeratorNo problem 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.