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
- Exclude first post from wp query
- How do I access the current post object within a block theme template or pattern?
- Does a custom WordPress theme require updates to it’s source code?
- custom wordpress theme blog page always not showing the last two pages of the articles
- I want to resize post featured image without cropping image. How?
- New directory created each time I upload new theme zip
- Cart button not working on mobile version [closed]
- TItle In Latest Post is not using H1 Tag [closed]
- Transitioning a big blog to WEBP images
- Not Able to Access Terms Under Custom Taxonomy Archive
- Is via.placeholder.com a good site to auto-generate placeholder images?
- Should we escape the values of constants?
- Align images to the left of the content
- Image and font support missing in editor when deploying theme remotely
- Why is my Toggle field not showing in Gutenberg?
- WordPress search field won’t get wider
- Add text when displying attribute with a hook on single product page
- When trying to run build script with gutenberg (with SVG import) – Error: Plugin name should be specified
- I am using update_option function to update theme options programatically but page needs to be refreshed many time for changes to reflect!
- How do I exclude the current post from the upcoming post query
- Adding copyright notice to page bottom in full site editing template
- Is there any halfway decent documentation on the wp.media JS class?
- Block to show posts from same category
- How can I enforce user to use Application password to generate JWT token? [closed]
- WordPress Includes mejs 404 error
- new WP_Query with order args – no more distinction between categories
- Unwanted spacing for cover block
- Only show read more text when when wp:post-excerpt meets excerptLength
- Activate Gutenberg group block for theme
- Where to find the category page in Bosa Theme
- Querying by post category slug with core/query block markup
- Is child-theme required when modyfing “Appearence > Editor”?
- How can a theme define which settings for blocks are available in the block editor?
- Submenus with recursive submenus
- Right to Left WordPress (Farsi) Changing the Order of Taxonomy to Term in URL
- How to Add Dynamic Sliders to WordPress Customizer with JavaScript
- wp_nav_menu_items callback not triggered
- Adding a language rule and displaying posts with a custom taxonomy term on its archive page
- Smooth Scrolling Animation of Image Between Two Containers (Elementor) Using JavaScript and GSAP
- How to add multiple custom blocks in custom WordPress theme using create-block?
- How to enable wc_add_to_cart_message?
- Export WordPress theme with modifications for other site
- How to use meta_query to retrieve posts from multiple custom post type
- Modify WordPress Search
- WP Update Messages get cut off during Theme update
- WordPress theme.json: Why doesn’t “contentSize” work
- How to create a template for a post in Query Loop block?
- Home.php not working with underscores
- Custom add to cart does not work well only on the first time
- Style categories block in query loop
- Homepage with latest posts does not include current-menu-item
- Trying to create a cutom query with pagination and page 2 breaking. Any help?
- WooCommerce custom add to cart buttons does not add products to cart if you’re logged out
- Lazy loading in my own WordPress theme
- Dropdown Toggle Split in Bootstrap Navwalker WordPress
- WordPress 6.4.2 – can’t load editor style css using ‘after_setup_theme’ or ‘admin_init’ actions
- Why is wp_nav_menu() not removing the container around the nav ?
- Dashboard and Site Language only partially translated (in own theme)
- post per page for differents post types in a same query
- filter the custom post type using wp ajax request
- When to use WP_query(), query_posts() and pre_get_posts
- Can not edit WordPress preset CSS-classes in own Theme
- Create multiple facades for same product?
- old content are still displaying after using wp reset and clear cache
- Why does customize_register only load inside of functions.php for me?
- Selective styles and scripts inclusion
- Confusion about theme’s parent and child functions.php file
- Theme folder name changed after update theme
- WordPress – Old theme causing display issues
- editor.css and block-editor.js are not applied even though they are in the theme setup