Forums

RSSInjection
[resolved] Feature: new tag [post_categories]? (8 posts)

  1. jsruok
    Member
    Posted 10 months ago #

    Could it be possible to add an extra tag? :-)

    Thanks for fixing the int'l issue, by the way!

    http://wordpress.org/extend/plugins/rss-injection/

  2. DCoda
    Member
    Posted 10 months ago #

    That depends, What is the tag?

  3. jsruok
    Member
    Posted 10 months ago #

    Thanks for the super fast reply!

    [post_categories]
    would produce a comma separated list of the categories the post belongs to.

    Our blog has a special guest author category and we would like to emphasize that for each guest post. Of course the optimal way of doing this would be having conditional tags, say [if category=53]This is a guest post by [post_author][/if], but I'm afraid that's too much to ask for. Anyways, just having a list of applied categories would help a lot!

  4. DCoda
    Member
    Posted 10 months ago #

    The existing tags map directly to existing WordPress functions and so are only 1 line. What you require is more of a custom feature that is more tailored to your needs than to anybody elses.
    If you still require the changes contact us here
    http://dcoda.co.uk/contact/
    To discuss a custom version.
    Regards
    Dcoda.

  5. jsruok
    Member
    Posted 10 months ago #

    Thanks for the offer! I'll make a counter-offer, though. :-)

    How about changing $replace variable to

    $replace = array (
                            'post_author' => 'get_the_author' ,
                            'post_url' => 'get_permalink' ,
                            'post_date' => 'get_the_modified_date' ,
                            'post_time' => 'get_the_modified_time' ,
                            'post_title' => 'get_the_title' ,
                            'blog_url' => array (
                                    'get_bloginfo' , array (
                                            'url'
                    )
                    ) , 'blog_name' => array (
                            'get_bloginfo' , array (
                            'name'
                    )
                    ) , 'post_categories' => array (
                            'get_the_category_list', array (
                            ', '
                    )
                    )
                    );

    at application/controllers/rrsinjectionfilters.php?

    That is, [post_categories] would implement get_the_category_list function (http://codex.wordpress.org/Function_Reference/get_the_category_list).

  6. DCoda
    Member
    Posted 10 months ago #

    If thats all you want then.
    Its been added to the todo ist :)

  7. jsruok
    Member
    Posted 10 months ago #

    Yes, that'll have to do as the feature is not that critical for us.

    Thank you for adding it on the list!

  8. abhis2.0
    Member
    Posted 7 months ago #

    Can I also use [post_categories] to display the category under which article is written?

Reply

You must log in to post.

About this Plugin

About this Topic