Forums

Top 10
Idea: Shortcodes (3 posts)

  1. Daedalon
    Member
    Posted 5 months ago #

    Could the manual plugin placement be added as two shortcodes to the default plugin install? Currently I've installed the Shortcode Exec PHP plugin solely to have this made into a shortcode [top10daily]:

    if(function_exists('tptn_show_daily_pop_posts')) tptn_show_daily_pop_posts();

    Later on I'll be making a similar one for the most popular of all time. All this is done to avoid having allowing PHP in pages and to avoid having to do any file edits as they are more complicated to administer.

    When the widget options are updated then these two shortcodes would be deprecated by one that takes options. Up until that they would rock and since then they could be allowed to function as they used to not force users to change settings due to a plugin update.

    http://wordpress.org/extend/plugins/top-10/

  2. Ajay
    Member
    Posted 5 months ago #

    Daedalon, this is on my TODO list for this and a few other plugins I author

  3. Daedalon
    Member
    Posted 5 months ago #

    Great! I tried implementing it already, but noticed it needs adding separate handler functions. As I got a workaround GUI by Shortcode Exec PHP that suffices, I'll look into other matters while waiting for your update.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags