Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author DCoda

    (@dcoda)

    That depends, What is the tag?

    Thread Starter jsruok

    (@jsruok)

    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!

    Plugin Author DCoda

    (@dcoda)

    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
    https://dcoda.co.uk/contact/
    To discuss a custom version.
    Regards
    Dcoda.

    Thread Starter jsruok

    (@jsruok)

    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 (https://codex.www.ads-software.com/Function_Reference/get_the_category_list).

    Plugin Author DCoda

    (@dcoda)

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

    Thread Starter jsruok

    (@jsruok)

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

    Thank you for adding it on the list!

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: RSSInjection] Feature: new tag [post_categories]?’ is closed to new replies.