Forums

[Plugin: Calais Archive Tagger] - Only tag posts without tags (1 post)

  1. webdeveloperguru
    Member
    Posted 3 years ago #

    Hello,

    I'm trying to alter a plugin so that it will only retrieve posts without tags. Here's a snip of code. Any idea on how I can limit this plugin to only those posts without tags already.

    Thanks in advance!

    //Retrieve the post
        $post = get_posts("&numberposts=1&orderby=ID&order=DESC&offset=$offset");
        $post = $post[0];
    
        if (empty($post) || empty($post->ID))
        	die("#DONE#");
    
        $entities = array();
        $tags = array();
        $newtags = array();
        $content = $post->post_title . " " . $post->post_content;
    
        $existing_tags = wp_get_post_tags($post->ID);

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by webdeveloperguru
  • This topic is not resolved
  • WordPress version: 2.6

Tags