The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

My Post Order
section_name value is null case (2 posts)

  1. geometron
    Posted 4 years ago #

    personally, i would prefer if the query_posts returned no posts when the section_name value does not exist, although, i can understand the logic behind returning all posts as is the default.

    is there a way i can test for a specific section_name value before i query_posts? if not, i would like to request this feature be added. something like:

    <?php if( has_section_name('My_Section') ) : query_posts('section_name=My_Section'); ?>
    (the loop)
    <?php else: ?>
    (fail content)
    <?php endif; ?>


  2. Kapil Chugh
    Plugin Author

    Posted 4 years ago #

    I have added your suggestion in my TODO list.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • My Post Order
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.