WordPress.org

Forums

Category slug inside The_Content (4 posts)

  1. borbs
    Member
    Posted 7 years ago #

    Hi!

    I'm creating a plugin that will put ads inside the post, ACCORDING to the category. I'm using WPADS as base.

    The problem is that I just can't make the category slug to show inside the_content. If I use, for example, "the_category", the category name SHOWS, but outside the HTML.

    How can I do this?

  2. borbs
    Member
    Posted 7 years ago #

    It doesn't work, either. =/
    I need this to be INSIDE "the_content", not just inside THE LOOP...

  3. You can't put something inside the content, except for the content itself. The content is the body of the post.

    If you want to replace part of the content with something else, you can create a filter function to do that.

    http://codex.wordpress.org/Plugin_API#Filters

Topic Closed

This topic has been closed to new replies.

About this Topic