[Sticky on the bottom custom code] Sticky displays twice, on top and bottom
-
Thanks to one of the moderators of this forum, I am using a custom code, which displays a sticky post on the bottom, instead of on the top of the page. I was able to apply it to twenty other themes, but I am not sure why I cant get it to work with “Responsive”
In order for this theme to display posts on the main page, instead of a static front page, a WordPress page needs to be added, and posted as a template -> Blog. For this reason I’ve done the modifications in blog.php (I tested it and that’s where the posts are coming from in the child theme, I can delete almost everything from index.php, and the posts will still show up, when I delete blog.php, from child and parent themes, the posts don’t work).
This is the blog.php file:
http://pastebin.com/XEZC5XnNAnd functions.php that I am using in the child theme:
http://pastebin.com/2sUsjnDrThe code seem to be working fine, but I am showing a sticky post on the top and on the bottom of the main page, and I am not sure where is it coming from (the one on the top).
If possible, please let me know what might be going on.
Thank you.
Original topic here:
http://wordpress.org/support/topic/how-to-build-a-custom-query-in-twenty-eleven?replies=16
- The topic ‘[Sticky on the bottom custom code] Sticky displays twice, on top and bottom’ is closed to new replies.