• 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:
    https://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

Viewing 10 replies - 1 through 10 (of 10 total)
  • stvwlf

    (@stvwlf)

    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:
    https://codex.www.ads-software.com/Pages#Creating_Your_Own_Page_Templates

    WordPress loop: https://codex.www.ads-software.com/The_Loop

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

    query posts – how to set parameters for the custom loop:
    https://codex.www.ads-software.com/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.

    Thread Starter KAIROS_Canada

    (@nikairos)

    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

    Thread Starter KAIROS_Canada

    (@nikairos)

    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?

    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?

    Thread Starter KAIROS_Canada

    (@nikairos)

    Hi stvwlf

    Thanks for the quick response!

    Here’s an example:
    https://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!

    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.

    Thread Starter KAIROS_Canada

    (@nikairos)

    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

    Thread Starter KAIROS_Canada

    (@nikairos)

    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

    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.

    Thread Starter KAIROS_Canada

    (@nikairos)

    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Creating a Blog *below* a page’ is closed to new replies.