Support » Plugin: WP What Links Here » Can't get it to work

  • Hi! This plugin seems promising but I am unable to get it to work. Your document at github is a bit hard to decipher for the layman.

    Echo the list in a template file. Which template? Where?

    Append the list to the post content using a filter. I am assuming this is to go in functions.php?

    To get a list of IDs, use wp_what_links_here( get_the_ID() ).

    Again, where?

    I’m sure this plugin is useful but I don’t know what to do to get it working.

    Warmly,

    Adam

    https://wordpress.org/plugins/wp-what-links-here/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Peter J. Herrel

    (@donutz)

    Hello Adam,

    thanks for taking interest in this plugin!

    – the easiest way would be to simply use the [wp_what_links_here] shortcode, to be inserted in the post editor
    – to use it programmatically, you can throw the first snippet from the wiki in a template like single.php or page.php. The snippet to append the list to the post content with the the_content filter should go in your functions.php file, or a custom plugin.
    – the list of IDs returned by wp_what_links_here() is something more advanced users could use to thoroughly customize the list of linked posts

    Maybe you get the impression that it’s not working because the queue is processed every two hours, that is, after installing the plugin AND having saved at least one post containing a link to another post. The wiki contains instructions to decrease the time of the interval, if desired.

    Let me know if this helps!

    Thank you. Yes, I did not wait. I thought I had to do a lot of extra coding to get the shortcode to work. Thank you for your response, you are helpful.

    Is there a way to have this work in the sidebar for a post?

    It seems to be working fine for pages but none of my posts have updated in hours. I do have a lot of posts so how long does this process typically take? Should it be instant once the cron is run and completed? I mean so far it feels like a waiting game.

    Plugin Author Peter J. Herrel

    (@donutz)

    Adam,

    – sidebar: I did not test, but it should work, provided the $post global is available and not corrupted. Did you give it a try?

    – posts: not sure why there would be a problem with posts.. The plugin should work out of the box with all public post types. The script scans the post content field for internal links. You’re not using a custom editor by any chance?

    – the waiting game: I’d recommend to use the wp-crontrol plugin (see wiki) to test and execute the cron job on demand, until you’re sure everything works as desired.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't get it to work’ is closed to new replies.