• Might sound strange but I want a section of my site thats a collection of posts people havent replied to.

    There must be a way.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter MarketRaisen2

    (@marketraisen2)

    This tag is sad, there is no answer, while the ability does exist.

    Use This:

    wp_set_object_terms( $object_id, $terms, $taxonomy, $append );

    To set a posts category, or any other taxonomic information.

    ~~~~~~~~~

    The above was on a single post on here many moons ago, it doesn’t mean anything too me.

    I don’t know the codig but there must be a way too trigger a category change of a post once the comment count goes over 0.

    Thread Starter MarketRaisen2

    (@marketraisen2)

    http://codex.wordpress.org/Function_Reference/wp_set_object_terms

    This is some help, I’ll try playing with it.

    Thread Starter MarketRaisen2

    (@marketraisen2)

    <?php wp_set_object_terms( '<?php the_ID(); ?>', 'new', 'category', 'true' ); ?>

    Doesnt seem to work no matter where I post it in comments.php.

    I’d try the comments template but that thing scares me.

    Thread Starter MarketRaisen2

    (@marketraisen2)

    <?php get_the_ID(); ?> doesn’t work either.

    Thread Starter MarketRaisen2

    (@marketraisen2)

    `<?php if ( have_comments() ) : ?>
    <?php wp_set_object_terms( ‘<?php the_ID(); ?>’, ‘new’, ‘category’, ‘true’ ); ?>
    <?php endif; ?>

    Isn’t working when I post it anywhere in content.php or any other template pages. I think this ones beyond me.

    Thread Starter MarketRaisen2

    (@marketraisen2)

    I’m taking a break, I’m not cut out for this lol.

    If any of you have had success in the past or have seen it on a blog (ever) then let me know.

    Thread Starter MarketRaisen2

    (@marketraisen2)

    Thats me ready to take anothe rbach at this?

    Do you think I need to edit the post template rather than the content.php file?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Is it possible to add a post to a new category after a comment is added?’ is closed to new replies.