WordPress.org

Forums

WordPress loop in multiple css divisions (15 posts)

  1. Mostout_DV
    Member
    Posted 1 year ago #

    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

  2. graphical_force
    Member
    Posted 1 year ago #

    What do you mean "ripped theme"? Are you talking about getting a premium theme and not paying for it?

  3. Mostout_DV
    Member
    Posted 1 year ago #

    Yes , Really nice , You can checkout my own theme here : http://www.mostout.com/wptest While searching about wordpress theme download i got a download link of that theme and I downloaded and installed that .

  4. graphical_force
    Member
    Posted 1 year ago #

    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.

  5. Mostout_DV
    Member
    Posted 1 year ago #

    Sucuri ??

  6. WPyogi
    Forum Moderator
    Posted 1 year ago #

  7. Mostout_DV
    Member
    Posted 1 year ago #

    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 ..

  8. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Looks like you need to use the info on Securi to contact McAfee -

    http://www.siteadvisor.com/sites/mostout.com

  9. Mostout_DV
    Member
    Posted 1 year ago #

    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 ...

  10. WPyogi
    Forum Moderator
    Posted 1 year ago #

    So why not start with one of the many FREE, GPL themes from here:

    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

  11. Mostout_DV
    Member
    Posted 1 year ago #

    Oh . We can talk about making a new own theme right ? I wrote that code in my new themes homepage (front-page.php )

  12. WPyogi
    Forum Moderator
    Posted 1 year ago #

    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

  13. Mostout_DV
    Member
    Posted 1 year ago #

    Yes . I'm asking about how to get same loop in different css divisions . You may check this address : 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

  14. Andrew
    Forum moderator & snail smusher
    Posted 1 year ago #

    Is your category.php file something you've created or something that has come from a theme?

  15. Mostout_DV
    Member
    Posted 1 year ago #

    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 !

Topic Closed

This topic has been closed to new replies.

About this Topic