WordPress.org

Support

Support » Plugins and Hacks » Related Links » Check count of pages and custom links

Check count of pages and custom links

  • 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/

  • The topic ‘Check count of pages and custom links’ is closed to new replies.
Skip to toolbar