WordPress.org

Ready to get started?Download WordPress

Forums

Creating a Blog *below* a page (11 posts)

  1. nikairos
    Member
    Posted 3 years ago #

    Hello.

    I am migrating to WordPress 3.0.5 from a TYPO3 website.

    In my TYPO3 site I frequently will start a web page with some key information and then beneath it include News Feeds.
    Here is a typical example:
    http://www.kairoscanada.org/en/sustainability/climate-justice/

    What this amounts to in WordPress lingo is something like having a blog 'module' (or two) set up *below* a page 'module'.
    Is this possible in WordPress?
    I've had little success searching for an answer.

    Thanks

    Nik

  2. stvwlf
    Member
    Posted 3 years ago #

    yes you can. you need to put two WordPress loops on the page. The second one is a custom loop that includes posts from various categories - the blog posts.

    You can either modify the main page.php template or create a custom page template.

    custom page templates:
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    WordPress loop: http://codex.wordpress.org/The_Loop

    custom query loop:
    http://weblogtoolscollection.com/archives/2008/04/13/define-your-own-wordpress-loop-using-wp_query/

    query posts - how to set parameters for the custom loop:
    http://codex.wordpress.org/Template_Tags/query_posts

    lots of reading to do. Its not hard to do once you get the gist of what is required and how WordPress works. For the most part you can copy and paste code from examples and make a few modifications.

  3. nikairos
    Member
    Posted 3 years ago #

    Hi stvwlf

    Sorry for taking so long to respond.
    Had to deek out of construction to attend to a flood of maintenance.

    Thanks so much for what looks like a really useful response.

    I'll dig in to the material and see what I come up with.

    Best wishes

    Nik

  4. nikairos
    Member
    Posted 3 years ago #

    Hi.

    I worked my way through all the links above and then settled on using the Plugin 'AStickyPostOrderER' to control the top post of a category.

    Is it now possible to customize a single post in a category blog feed?

  5. stvwlf
    Member
    Posted 3 years ago #

    Is it now possible to customize a single post in a category blog feed?

    I don't understand what you are asking. What are you trying to do?

  6. nikairos
    Member
    Posted 3 years ago #

    Hi stvwlf

    Thanks for the quick response!

    Here's an example:
    http://www.kairoscampaigns.org/test/wordpress/?cat=3

    I have used 'AStickyPostOrderER' to 'pin' 'What is Sustainability?' to the top of the blog because it is a global statement of what this entire section of the site is about.
    As such I'd like, on this post only, to get rid of the date, author, etc.

    Is that possible?

    Thanks!

  7. stvwlf
    Member
    Posted 3 years ago #

    Hi

    since you only want to remove line from one post, you can use a line of CSS that is hard wired to the post id # of that one post.

    #content .post-4 .entry-title { display: none; }

    add that line to your stylesheet.

    WordPress assigns a class of post-4 to that post since its post id # is 4. Then we remove the display of that post's author/date line using CSS.

    See if that works for you. If it doesn't, leave the line in your stylesheet so I can see what the problem is.

  8. nikairos
    Member
    Posted 3 years ago #

    Hi stvwlf.

    This is pretty brilliant.
    I'm piling through widgets and more general theme stuff right now but will get back to this.

    If I can apply special styles to posts based on id# that's spectacular.

    Thanks.

    Nik

  9. nikairos
    Member
    Posted 3 years ago #

    Hi stvwlf.

    I just upgraded to 1.3 + StudioPress Genesis to 1.6 and AStickyPostOrderER just failed.

    Anyway, still working on getting an html post to display above a category blog.
    I've read through all the pages recommended above a couple of times but am still not really clear on the steps I need to take.

    I have created a copy of the main page_blog.php in a child theme directory but I'm not sure what to do now.

    Any help would be appreciated.

    Nik

  10. stvwlf
    Member
    Posted 3 years ago #

    Since you are using Genesis I suggest you ask the question on their support forum. Don't ask how to get that plugin working. Present what you are trying to accomplish (two loops on one page) and ask what method they recommend. Genesis has its own ways of accomplishing things.

    You can describe the condition that led you to the plugin that's no longer working. Ask how to accomplish it in Genesis without needing a plugin.

  11. nikairos
    Member
    Posted 3 years ago #

    Thanks.

    I've sent them the same problem.

    I sent the prob re. the plugin to the developer of the plugin, but will see if Genesis has a way of sticking a specific post in a category archive to the top.

    NIk

Topic Closed

This topic has been closed to new replies.

About this Topic