I have a Blog Page and some content in that page, that I’d like to have displayed before the post loop begins. I can’t seem to figure out how to grab it though, as the_content() grabs the first post in the loop.
Any help is greatly appreciated!
I don’t understand what you mean. What type of content is it that you are trying to display? You might also ask the theme developer – http://www.coderiverlabs.com.
I am the developer.
Within the WP backend in the Blog page, I have content in the page itself (in the WPEditor). I’d like to display that content at the top before the post loop.
Already written about 3 different ways to do this.
1. You can create a blog page template and add your content using your WordPress editor.
2. You could also add a widget area in that location
3. Or you could hook in the content using a custom function
Code not displaying? Grab it on Guthub
You can easily change the hook and conditional tag.
Re: Conditional Tag
You might need to try using the page i.d of the blog page rather than use
Ok – but where do I put any of this code?
At the end of the child themes functions.php file.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.