WordPress.org

Forums

Related Links
Check count of pages and custom links (1 post)

  1. redone975
    Member
    Posted 2 years ago #

    How would I go about checking to see if the count of "Pages" && "Custom" links is greater than zero?

    I'm using the plugin with 3 custom post types that will be populated on every page in a separate toolbar, so a general count check of the main array won't work ... as shown in the following code:

    $related_pages = get_related_links();
    if(count($related_pages) != 0){
       <div id="relatedlinks">
          <h3>Related Links</h3>
          Do loop
       </div>
    }

    Can't seem to figure out how to check for both of the types in the array...

    Any help would be appreciated.
    Thanks.

    http://wordpress.org/extend/plugins/related-links/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Related Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic