Title: WordPress loop in multiple css divisions
Last modified: August 21, 2016

---

# WordPress loop in multiple css divisions

 *  [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/)
 * I’m working on a new website and I’m 17 year old now . I choose WordPress as 
   my CMS because there’s a lot of chance to get ripped premium themes . But unfortunately
   our site is growing and we got about two thousand views within two days of launch.
   We’re students and making this website for making money for our researches on
   Voice Processing and Artificial Intelligence . So we decided to make our own 
   theme and we started making it . I got the charge to make the WordPress theme.
   But I am not familiar with WordPress development so here’s my problem :
    In a
   division called _**Left\_loop**_ I’m adding two different CSS divisions . One
   is _**recent**_ and other one is _**Main**_ . I need a loop of recently added
   posts here but the most recent one in the first division which is DIV _**recent**_
   and other posts in the next division . But the posts must not be duplicate . 
   I know that stuffs will make good attraction to my users ! Any experts can help
   me please…. Now i’m using one ripped theme , Feeling so sorry to the developer
   who developed this theme . So need to develop a new theme as fast as I can please….
   check my website : [http://www.mostout.com](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/?output_format=md#)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191394)
 * What do you mean “ripped theme”? Are you talking about getting a premium theme
   and not paying for it?
 *  Thread Starter [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191504)
 * Yes , Really nice , You can checkout my own theme here : [http://www.mostout.com/wptest](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/?output_format=md#)
   While searching about wordpress theme download i got a download link of that 
   theme and I downloaded and installed that .
 *  [graphical_force](https://wordpress.org/support/users/graphical_force/)
 * (@graphical_force)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191506)
 * I hope your not on her asking for help for a theme that you s should have paid
   for since that would be theft.
 * Also, your site also shows issues at Sucuri.
 *  Thread Starter [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191507)
 * Sucuri ??
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191508)
 * See: [http://sitecheck.sucuri.net/results/mostout.com/wptest/](http://sitecheck.sucuri.net/results/mostout.com/wptest/)
 * There’s lots of good info here on how to make a theme –
 * [http://codex.wordpress.org/Theme_Development](http://codex.wordpress.org/Theme_Development)
 *  Thread Starter [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191509)
 * Oh god , How to know the reason of this blacklisting ?? I were using a free server
   and recently switched to new paid server because facebook blocked my website 
   because of the server . How do I get unblocked sir ? As i already said you We’re
   doing all these works to make some money and start our research project in Artificial
   Intelligence . Please ..
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191510)
 * Looks like you need to use the info on Securi to contact McAfee –
 * [http://www.siteadvisor.com/sites/mostout.com](http://www.siteadvisor.com/sites/mostout.com)
 *  Thread Starter [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191511)
 * Thanks for that . I’m using the following code now for showing loop in my homepage:
 *     ```
       <?php query_posts('showposts=1'); ?>
       <?php $posts = get_posts('numberposts=1&offset=0'); foreach ($posts as $post) : start_wp(); ?>
       <?php static $count1 = 0; if ($count1 == "1") { break; } else { ?>
       </li>
       <li>
       								<a>" title="<?php printf(esc_attr('Permalink to %s'), the_title_attribute('echo=0')); ?>" rel="bookmark">
   
       <li>
           <?php if (has_post_thumbnail( $post->ID ) ): ?>
                  <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
                                       <?php else :
                                       $image = get_bloginfo( 'stylesheet_directory') . '/images/default_cat_img.jpg'; ?>
                                       <?php endif; ?>
                                       <div class="postima1" style="background-image: url('<?php echo $image[0]; ?>')">
   
                                       </div><!-- end #category-name -->
                                       <span class="hp1">
                                       <?php the_title(); ?>
       ```
   
 * But when i use the same script in my category.php for getting the posts of that
   directory in the same view it shows whole website posts there instead of that
   categories posts ! Please give me some easy methods I’m using a premium theme
   and I didn’t paid for that . I got some links from Google and got a zipped file,
   Really worried about that .. please …
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191512)
 * So why not start with one of the many FREE, GPL themes from here:
 * [http://wordpress.org/themes/](http://wordpress.org/themes/)
 * Those are the only themes supported on these forums – we do not support commercial
   themes here (and not paid for is a whole other not good issue) – [http://codex.wordpress.org/Forum_Welcome#Commercial_Products](http://codex.wordpress.org/Forum_Welcome#Commercial_Products)
 *  Thread Starter [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191513)
 * Oh . We can talk about making a new own theme right ? I wrote that code in my
   new themes homepage (front-page.php )
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191514)
 * Yes, if you are creating a new theme, then that’s a different question – but 
   I think you already have a thread on this topic — which I will reopen so you 
   can continue there ?
 * [http://wordpress.org/support/topic/how-to-define-a-flow-of-recent-posts-but-in-different-css-divisions?replies=5&message=opened](http://wordpress.org/support/topic/how-to-define-a-flow-of-recent-posts-but-in-different-css-divisions?replies=5&message=opened)
 *  Thread Starter [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191516)
 * Yes . I’m asking about how to get same loop in different css divisions . You 
   may check this address : [http://www.mostout.com/wptest](http://www.mostout.com/wptest).
   
   I need that kind of things , It’s my blog and I developed that theme , But don’t
   know how to get the same kind of things in my category.php pls
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191518)
 * Is your category.php file something you’ve created or something that has come
   from a theme?
 *  Thread Starter [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * (@mostout_dv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191525)
 * While checking about creating new theme in codex.wordpress.org i found one list
   of .php files and i created these files in my theme directory !

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘WordPress loop in multiple css divisions’ is closed to new replies.

## Tags

 * [duplication](https://wordpress.org/support/topic-tag/duplication/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 14 replies
 * 4 participants
 * Last reply from: [Mostout_DV](https://wordpress.org/support/users/mostout_dv/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/wordpress-loop-in-multiple-css-divisions/#post-4191525)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
