-
AuthorPosts
-
February 18th, 2015 at 13:29 #30619fuliggians
I want to show in the slider 10 different specific posts (PAGES) writing the ID (with comma).
Every page has the featured image, but the slider shows me only 4 pages.Why?
February 18th, 2015 at 18:49 #30621fuliggiansSolved!
in the file: frontpage.php you need to add the counter of the slides and add to the custom_query2:$nirvana_slideNumber_specific = count($pieces_array);
$custom_query2->query(array( ‘post_type’ => ‘any’ , ‘showposts’ =>$nirvana_slideNumber_specific , ‘post__in’ => $pieces_array, ‘ignore_sticky_posts’ => 1,’orderby’ => ‘post__in’ ));February 28th, 2015 at 22:00 #30712ZedCryout Creations mastermindThanks for pointing this out. We’ll get it fixed as soon as possible.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.April 7th, 2015 at 07:50 #31037SeanI’m having the same issue in Tempera. The slider only shows the first post in a series of comma-delimited posts. Seems it’s not incrementing the count.
Unfortunately, I don’t understand the code suggestions above. It looks like the code needs to be changed for both custom_query and custom_query_2. I’ve attempted to incorporate the code with no luck. While I haven’t broken the first page, I haven’t improved it, either.
Can someone post a working code sample?
Thanks!
April 7th, 2015 at 20:25 #31042SeanThanks – I got it.
For some reason ‘post__in’ => $pieces_array, failed to work after creating a variable for the count, so I used ‘post__in’ => explode(“,”, $tempera_slideSpecific), in the query instead of post__in’ => $pieces_array,.
May 10th, 2015 at 14:13 #31775ZedCryout Creations mastermindThis will be fixed in 1.0.6.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
AuthorPosts
The topic ‘specific posts (by ID) on presentation page’ is closed to new replies.