The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › How to move "query posts from category" DIV in the middle of the Home.php ?
I’ve been working on HTML CSS to WordPress lately and I got this situation.
I have Home.php and in that file i have this code
<?php query_posts('cat=46&showposts=3'); ?><?php if ( have_posts() ) : while ( have_posts() ) : the_post();?>
<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('thumbnail'); ?> </a>
<h2> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h2>
And that shows me 3 latest posts on my Home page, but it’s on the bottom of the Page in WordPress which I made. How can it be inside the page or atleast in the middle of it ?
A picture that sums it up. I want to move the blue part in the middle of the post/page but that’s inside the code/php file.