How can i use the Advanced Output Hooks for a plugin.

Home Forums Product Support Forums Related Posts Pro for WordPress Support How can i use the Advanced Output Hooks for a plugin.

This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 9 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4343
    stephanaugusto
    stephanaugusto
    Participant

    I Want to put the related posts under a plugin, how can i do this ??

    #4344
    stephanaugusto
    stephanaugusto
    Participant

    i did this putting the php related shortcut in the php code of plugin that i want to stay below, works fine, but i want to know if have the better way to choose the order that plugins will show in the page and put the related plugin where i want.

    #4346
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    The way these kinds of plugins work is the following:

    • They hook to the “the_content” filter with a function
    • Depending on the priority of the function, the display order is decided
    • This priority is usually set to default, which is number 10
    • The lower this priority number is, the sooner the plugin output is displayed after the post/page content
    • Functions with the same priority are displayed by the call order
    • Priority numbers below 10 are usually not working (not displaying)

    The problem is that if every other plugin uses the default priority, then it’s not adjustable to higher (number 9 or below), because it won’t work.
    In this case the only possible option is to change other plugin priority codes and then the Related Posts Pro priority codes. The problem is that this is only possible by editing the plugin codes, which is not recommended, because an auto update will override the changes.

    I hope I explained it clearly, it’s a bit complicated issue. My overall answer is, that using the theme shortcode in your case is the best option you can do, unless you know how and which plugin codes you need to edit to change the layout priorities.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Related Posts Pro for WordPress Support’ is closed to new topics and replies.