The loop in your code:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
is saying “if I have posts, display them all – by the declared # per page”
So you need to modify the loop to only display the content you need.
Can you provide some information on where the content such as address details are coming from?
Related Posts:
- WordPress Theme variables scope
- esc_attr() right way and use
- why is translation not working on theme?
- How to export/import theme customizer settings?
- Check php version before theme activation
- Separate WordPress themes for each category page
- Detection of theme being used
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- How to get the registered sidebar’s name by its id?
- One button to change all settings in theme customizer?
- Activate different theme for temporary preview
- Nice scroll to wordpress
- Twitter feed is showing blank in WP site [closed]
- Design view breaking on Pages
- Can’t Find a Way to Edit the Home Page Content [closed]
- How do I hardcode a WordPress shortcode into my theme?
- Fatal error: Call to undefined function wpsc_cart_item_count()
- Passing array in add_option()
- Widgets not showing in my custom theme
- Create a quick start wordpress installation [closed]
- How should I best target dynamically served content?
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Show full posts in archive
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- Reconfiguring WordPress site
- Customizer: active_callback and sanitize_callback incompatibility?
- My page.php shows the index.php
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Custom Theme’s “Preview Changes” Doesn’t Work for Previously Published Posts
- How do I link a button I created in theme customizer to a function?
- What does this mean in wordpress? Easy question
- Separation of presentation and code – WordPress
- WordPress Customizer Default Image
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- Why in my theme I can’t see all the statics content under the posts?
- get_template_directory adding FTP root folders in urls
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Save Custom CSS file in the upload folder dynamically?
- Design with Elementor and code the rest?
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- home.php show blog posts as grid view
- blank white page when post/update/change option etc
- Problems clearing cache
- Override index with a custom PHP page
- Implementing custom tag/tax pages
- Randomize Color Scheme Selection in Theme
- Accidentally deleted php code in WordPress website [closed]
- ‘Bones’ theme: Load stock scripts in footer instead of header?
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- Displaying Slider in Front Page (home) using Customizr Theme
- call a string/function from database
- Commas in Tag Cloud
- Is there a (offical) way for a theme to deactivate itself and show a message in admin?
- WordPress redirects page query parameter in URL
- Publish button now showing content after saving
- How to put search bar & logo in the “primary navigation” storefront theme?
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- error_log PHP error log found. This file must not be in the production version of the theme. (wordpress theme check plugin)
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- Styling a category link
- Not able to remove caption shortcode from the content
- File from parent theme imported to child theme doesn’t work – any ideas?
- How to use data URL in WordPress?
- wordpress email checker on domain
- Unable to retrieve get_author_posts_url
- Display post date also if the date it’s the same for each post
- Conditional Banners
- Invalid Argument foreach
- How can I render more than multiple posts on template-parts with post formats
- Add the shortcodes from the enfold theme to the other theme
- loop to return tags in woocommerce in alphabetical order?
- need to edit php file of child theme to remove an element
- style.min.css code issue
- Beginner Developing Theme with Bootstrap – NavMenu question
- user update profile for custom code
- Rotating Header Images
- Create a custom theme-specific page, invisible in the admin-panel?
- Editing existing pre-created menus in PHP
- Two theme locations for two menus, but only one is showing up
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Image not displayed
- Inserting A Feed and Sidebar into an HTML Page
- Using existing widget code! [closed]
- how to register a second page-template
- Gallery requires a featured image but does not show it in posts/pages
- WordPress Website Featured Image Replacement Issue
- Themes with variable width or single columns? I want to display source code
- .htaccess on multisite and roots theme?
- Move wordpress sidebar on homepage up to new position
- How can I print out a single stylesheet or javascript link?
- Catchable fatal error in appcloud free theme by Tokokoo
- Errors while Loading Most Recent Version of jQuery
- WordPress menu links with images & class selection
- How to create and add js and css file when server is not on my PC?
- Predefine Magazine Style Layouts
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme