try this
<div class="container">
<div class="inner_box">
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<li>
<?php the_title(); ?>
<?php the_content(); //this is not in inner_box ?>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
try this
<div class="container">
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<li>
<div class="inner_box">
<?php the_title(); ?>
<?php the_content(); //this is not in inner_box ?>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
Related Posts:
- Get current taxonomy and display query accordingly
- How to show full post on home page
- Error while excluding a post from another loop (using its ID)
- Is there a way to define the $post var outside the loop?
- ACF flexible content block not showing on live site (works locally)
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Want to change the post every three days with in specific category
- Separate top level categories on archive-product.php by meta
- While loop in functions.php outputting the_title() of each post on frontpage
- Shortcode for Comments and Comment Boxes in Post Loop
- Permalink Short code showing unnecessary link text inside the loop
- Current post categories and subcatecories outside of the loop
- Multiple post in One Loop in wordpress
- Display specific posts based on an ID of another post
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- “read more” redirects to the wrong page
- Diffrent layout for posts [duplicate]
- How to show post views shortcode data for each post on Posts List Page?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Count singular post views automatically
- How to distinguish pages created by woocommerce?
- Moved a website and excerpts don’t work for old posts
- show loop id post , only first id can read
- How can I get the last post while on the first post for pagination? As if it were infinite
- Loop and output 4 rows of posts on home page
- Double loop output
- How to show category image if no featured image is set?
- Get post id outside loop : Notice: Trying to get property of non-object
- how to call recent post content in a loop ( only the content before read more tag)
- Retrieve posts inside foundation tabs and tab-content split by 3 per row
- Loop through all posts showing duplicates
- Can I Paginate Post after every 25 tag?
- Post being duplicated with foreach loop
- Alternative content between posts no repetition
- Start loop from specific post ID
- post->ID displays the same ID number for every post
- Display new posts categories in separated divs
- Show post excerpt
- Wp_query loop is not working as it should
- Show author bio box
- Maximum number of posts per page before affecting performance?
- Use special template for the first post in the loop
- Display post order ranking within wordpress loop
- Posts are not showing up on next page.
- Can the_post_navigation() be outside of the loop?
- Custom post type – Loop out in random order but same 15 to appear first… still random
- WordPress infinite post cycle
- WordPress infinite post cycle problem
- Problem with wp_insert_post()
- How to get all posts in gallery post format template
- How to control Post view count incresing in sidebar widget posts too?
- WordPress Request Post All Post ID in a Loop? [closed]
- List Authors For Current Category
- Show Posts By Custom Field
- List of authors posts minus very latest
- WordPress loop uses unmodified posts array, why?
- Querying multiple categories in the WP loop if one of the category IDs is dynamically obtained
- Post are not showing up
- Add row after three columns
- Post Format problem
- How to make post button to a random post
- Modify WordPress loop after it has been run
- Skip posts, but keep posts per page
- show latest authors blog post
- Post gallery as carousel
- Display the latest post from some selected authors
- Multiple Post Repeat for Related Post Loop by Category
- Showing content from WordPress ruins page CSS using WP_Query, without, content does not show
- index.php is only displaying current month’s posts?
- Add something after all sticky posts in The Loop
- Advanced Post Display/Pagination/Ordering
- Loop doesn’t display posts. It displays a link to the home page instead
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- How to show the posts list into a static page? Problems to use the loop into a static page
- Keep post format class with isotope filter
- Grab next post title in archive page
- Where should get_post_meta() go to get $post->ID get_post_meta() is empty and $post->ID & get_the_id() are working
- How to use extract shortcode in loop?
- Getting posts from multiple users?
- Loop through posts by each term and exclude duplicate posts assigned to several terms
- Show post if in category
- Adding a category at even positions on main loop with modified pagination
- Displaying categories items among posts
- Display Post by menu order
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to inject a post within a loop
- wordpress taxonomy results
- Getting rid of the blog page entirely
- Displaying posts on Homepage
- Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
- Sort by category and then date?
- Only show posts with image and the correct ammount of posts in loop
- Is there a way to separate wordpress titles from their posts?
- Related posts by searching post tags of single post as terms
- The loop: more posts than I want to fit on one page
- adding custom meta as well as looping through posts
- Loop not allowing infinite scroll after post per page limit
- Customise the appearance of 4 specific post ID’s within the loop?
- what template-part to call, to have my post in the center of the page?
- Redirecting posts in WordPress to a specific page