Tagged: featured post, slider
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by Mahesh.
-
AuthorPosts
-
March 1, 2017 at 6:05 pm #111008dschwartzerParticipant
Until recently, the slider options were part of the main Admin Panel under Appearance. When there, I had the ability to enter the post ID while the related post was still scheduled to post. While the slider would then show one less than the total (if the slider was set to 5 it would only show 4), as soon as the post went live, the slider corresponding to that post would then automatically go live also (show 5 again).
I noticed that in the last update or two, that option has now been moved to the Customizer and if I enter the ID for a scheduled post and save the settings, the theme changes the scheduled ID to False and the slider does not update when the new post is published. I have to wait for the post to be live before I can populate the Featured Slider panel with the latest post ID.
Is this an intended change? If so, is there some way I can set the theme to go back to the old behavior? My posts tend to go line early in the morning and I now have to always go back and enter the Post ID after the fact.
I hope this explanation is clear. Let me know if you have any questions.
Regards,
David
March 2, 2017 at 9:52 am #111052MaheshParticipant@dschwartzer: One the recent updates, theme options has been removed and you can customize settings through customizer. I understand the problem you are facing. But it is how it has been put up. You can only select the published status post not the other. But if you do like to have the scheduled to be posted, you’ll need to customize the theme a bit. Let me know further.
Regards,
MaheshMarch 2, 2017 at 8:15 pm #111113dschwartzerParticipantDear Mahesh:
Thank you for your usual quick response. I would like to know more how to customize the theme to allow me to add scheduled posts to the slider. I am not an experienced coder so please be as detailed as possible for me.
Be aware that I do use a child theme of Simple Catch as my primary theme if that helps or makes a difference.
Best Regards,
David
March 3, 2017 at 10:47 am #111171MaheshParticipant@dschwartzer: Well, its good to have child theme to do any customizations. But what required here cannot be customized through child theme. You’ll need to edit the theme file itself. What you need is, edit
simple-catch/functions/panel/customizer/customizer-sanitize-functions.php
file and editfunction simplecatch_sanitize_post_id()
replace
return ( 'publish' == get_post_status( $post_id ) ? $post_id : false );
with
return ( ('publish' == get_post_status( $post_id ) || 'future' == get_post_status( $post_id ) ) ? $post_id : false );
on line 96
Note: Since the theme file itself is edited, please make sure you do this changes on every update.Regards,
Mahesh -
AuthorPosts
- The topic ‘Populate Slider Prior to Live Post’ is closed to new replies.