-
flibParticipant
Hi, is there any way to display “sticky pages” instead of sticky posts? Cheers!
Daniel TaraKeymasterThere is no such thing as sticky pages but I may consider adding a way to add pages to the slider if more users request it.
bjohnmParticipantI have a couple of questions with the slider.
1st, it appears the articles I’ve designated “sticky” are also being repeated in the grid. I thought I’d read they wouldn’t be. Is there a way to avoid this.
2nd, I’m lazy, so I would prefer to be able to fix the number of sticky posts in the slider so that I don’t have to go back and “unsticky” posts later. In other words, I would set it some number, say five, and the five most current sticky posts would be displayed. When I add another sticky post, the oldest one of the five would fall out of the rotation, and the newest one would be included. Would this be difficult to accomplish in this theme?
I basically did this using a very old plugin called CD-Featured in your Cover-WP theme (http://deep.mastersfamily.org) I’d prefer to not have to try to do the coding it took in this new theme, and use native functionality.
Thanks for a great theme.
Daniel TaraKeymaster1. In functions.php rewrite the function
esplanade_ignore_sticky_posts
like this:function esplanade_ignore_sticky_posts( $query ) { global $wp_the_query; if( ( $wp_the_query === $query ) && $query->is_home() && esplanade_get_option( 'slider' ) ) $query->set( 'post__not_in', get_option( 'sticky_posts' ) ); }
2. In slider.php on line 3, change the value of
posts_per_page
to 5bjohnmParticipantThank you for the quick response. I will test this out later today.
I’m no coder, but am no uncomfortable tweaking around with the code. However, many WordPress users don’t have a desire to play around with the code, not to mention, an update could break the tweak. So I would like to suggest, that in some future release, you consider making the number of sticky posts displayed one of the available settings in the settings interface.
Just a suggestion. Thanks again.
latinativoParticipantHi,
I’d like to know how I can activate the slider. I’ve created two posts (text and video) but I don’t see the slider “working”. I’m not a savvy. I pretty much look for video tutorials on how to do this. By the way, your theme has all what I’ve been looking for.
Thanks for your help!kimayaParticipantI don’t see this option in my page of posts ??? Is that an option of wordpress o an option of the theme ?
bagpieParticipantHi, great theme.
I, like the first commenter on this page, would also like to be able to add pages to the featured post slider and it would be great if it was added as an option. Any suggestions as to adding this feature myself in the meantime?frankbhvParticipant@daniel In reply to bjohnm you suggested to exklude sticky posts from the rest of the posts. I changed my slider.php to 3 posts as you suggested. Now I would like to get sticky post #4 in the posts list again. (1,2,3 in the slider, the forth as newest post in the line).
Alternatively I would like to get the first new three posts in the slider without marking them as sticky. Is there a way to solve this problem?
mfaridmailboxParticipantHi, great theme, but why i dont see sticky option on my posts ? what added plugin must be installed to display sticky post option ?
mfaridmailboxParticipanti have found the sticky option post checklist on the publish subpanel. i click “visiblity” edit link then i check “stick this post to the front page”.
thanks
Tagged: post slider
You must be logged in to reply to this topic.