WordPress.org

Ready to get started?Download WordPress

Forums

My Post Order
[resolved] Not working? (6 posts)

  1. matty04
    Member
    Posted 1 year ago #

    Is this correct?

    <?php
    
    		// The Query
    		query_posts('section_name=Home_News');
    
    		// The Loop
    		while ( have_posts() ) : the_post();
    			echo '<a href="';
    			echo get_permalink();
    			echo '"><img src="/wordpressX/wp-content/themes/ryanlaw/images/arrow-blue.png" alt="" title=""  />';
    			the_title();
    			echo '<br style="clear: left; " />';
    		endwhile;
    
    		// Reset Query
    		wp_reset_query(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

    http://wordpress.org/extend/plugins/my-posts-order/

  2. matty04
    Member
    Posted 1 year ago #

    Never mind. Changed the Section name to "Home" and it works.

  3. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    There is nothing wrong in taking section name as 'Home_News' or 'Home'. Main thing is that section name which you are using in theme should be same as you mentioned while creating sections.

  4. liquidpixels
    Member
    Posted 1 year ago #

    Hi all, I have installed and works well in widget. Can someone tell me which file to add this snippet of code into, it doesnt seem to ever say which file to edit.

  5. liquidpixels
    Member
    Posted 1 year ago #

    Dont worry, I just found it, with a bit of study, thank you it works perfectly.

    You're a champion

  6. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    Glad to know that you resolved the issue yourself.

    Well done!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.