If you’re familiar with ZF you might be looking for models and layouts, both which you need to manually code with WordPress.
But if you do so, you’ve got full possibilities.
So feel free to create multiple template files and load them when it’s needed (e.g by hooking into template redirect or get_template_part) and then just query what you feel you need for (with WPDB you can fire up any SQL query you need the blog’s MySQL server credentials for).
Related Posts:
- query posts in wordpress
- 2 loops, is_home won’t work, count is off
- posts_nav_link(); not showing up on static pages
- Get list of months with posts
- Why is the first query affecting the second query, even after wp_reset_query() and wp_reset_postdata(), but not on the second page?
- Custom URL parameters in template files
- Metadata Query when storing data as array possible?
- show a post from a specific post format
- Using $post->post_name in body id causing error: Trying to get property of non-object
- Keep sticky posts out of query unless they have featured image
- How to query the latest 5 posts and sort them by title?
- Reset WordPress Post Query to default
- Show specific category posts on Genesis framework home page
- How can I prevent posts with no title showing up in my query?
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- CSS class on last post in loop ( custom query )
- Custom Post Type Query issue
- How to order by multiple date meta_values?
- WP_Query not getting all posts, just tagged posts
- tag__in does not return posts
- Read more doesnt work with query posts
- View list of all attachments on site
- multiple queries to get posts from same category?
- Allow filtering of loops for all categories
- Best practice for implementing a blog page / section in wp_menu_nav()
- Getting post URL within custom content template
- Custom Static Page to Display Blog Posts in Excerpt Non-Singular Form (is_singular not working?)
- Not the typical order by posts by date question
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- issue displaying variations in custom template using WPeC 3.8.9.2
- Display Search Result Count
- theme path in javascript file
- Are content.php and content-single.php the same?
- Theme Customizer : how to create multiple-level panel
- How to change get_custom_logo() url?
- How to execute conditional script when on new customize.php (Theme Customize) screen
- How to set the default value of a option in a theme?
- Add meta-information to theme itself
- Theme elements not translating
- How to use bloginfo( ‘template_directory’ ) in array
- Is using eval() ok in this scenario
- Prevent WordPress updates from overriding custom language translations?
- Display site admin profile fields in header.php
- Page template across themes
- WordPress Genesis Child Theme Filter divs
- Displaying part of every child page?
- Customizer API and add_panel(). Panel doesn’t show
- I want to get the home root path
- How to add code in the content area in a WordPress theme?
- Unable to pass variable on theme cusomizer add_settings()
- Select full Image Size on widget “Genesis – Featured Posts”
- Where to find the code that redirects requests on the static page URL to the home page
- How to change database values on theme update
- Fetch Record based on meta key dates
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Post thumbnail to append post content via ajax click event
- Is it possible to save more than one image to an option?
- Should i clear the plugin cache for cache busting?
- Wp Super Cache stops the update of a Post Meta
- Renaming a theme so it aids SEO and the theme used is hidden
- Dynamic menu links after header title
- Theme thumbnail in dashboard
- Prerequisites Skills to learn WordPress [closed]
- Should I create multiple sidebars, or use or one dynamic sidebar with logic to determine it’s abilities?
- Fatal error: Class ‘ZipArchive’ not found
- What happens if a theme is no longer supported?
- Running a function on post update with new post meta
- Check if( selected() )
- On what hook can I get the queried object’s final state?
- Modify available templates (in dropdown)
- Change WordPress Resource URL
- Sample Theme Options page for Multisite – what to consider
- Writing less unnecessary code with WordPress
- How to use shortcode inside of shortcode in theme
- Search Form Not Working
- My contact form – I’ve changed the source code but the changes are not being applied
- Theme calling page.php instead of home.php
- Open portfolio image in light box
- Dot “.” in option value foobars save options function
- style variations hurt the editing performance
- How to properly use AWS SES for a contact form?
- No templates for condition page.php Elementor
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- How to generate a rtl.css file for themes?
- What is the best practice workflow for new website overhaul and keeping current SEO ranking? [closed]
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- Providing updates to your WordPress theme
- Mutlisite in wordpress is not working
- display news with pictures 3 small and one large (loop)
- add_theme_page is not working
- How to check if a certain theme option settings has already been set
- All post ids are the same after this query but rewind_posts() does not seem to work here?
- How can I tell WP which file to load by default in Appearance > Editor?
- How to resize video lightbox popup in wordpress? [closed]
- How can I get rid of the distance when I’m using list-style-type: none? [closed]
- Best Way to Inventory the Media Library of a 200+ Multisite Installation?
- Extracting Distance from FacetWP Proximity Function to Display in WordPress Template
- Theme now uses require.js and enqueue script no longer works
- WP site makes mobile browser crash for high memory usage
- Fatal error: Call to undefined function the_posts_navigation()