- This topic has 2 replies, 2 voices, and was last updated 5 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › eMag › Main Slideshow – Sort by date error
Hello,
after updating (yesterday) wordpress to the last version and also eMag theme, when I select ALL/CATEGORIES (the same error is in the old version of theme after wordpress update) in the main slideshow (Admin Panel > Appearance > Customize > Home Main Slider > Setting Options), I see the first posts and not the latest ones. Order by date in ascending and not descending (I see posts of 2017, not posts of 2019 february).
Can you help me?
Thank you very much.
Hello @simonnealessi85,
We will look for the issue and let you know.
Hoping for your kind co-operation.
Best Regards!!
I don’t have this problem more because I made this change to the code of inc/hooks/homepage-slider.php (ver. 1.0.3)
BEFORE: I use main slideshow setted up to show 3 posts
On line 64:
'orderby' => 'date' //EDITED,
'order' => 'DES' //ADDED,
'cat' => $emag_feature_slider_category,
'offset' => 0 //EDITED
On line 136:
'orderby' => 'date', //EDITED
'order' => 'DES', //ADDED
'offset' => 3, //ADDED
Now posts are inserted in the slideshow ordered by date and the first three appers in the slideshow and the 4th and the 5th appear on the side.
Thank you for the help, waiting for the next update 🙂
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |