WordPress.org

Support

Support » Plugins and Hacks » Hacks » Using PHP to return related post url.

Using PHP to return related post url.

  • Hello Forum!

    I am working on something very simple I couldn’t find anywhere on net so I decided I will try to do it for myself but have a little problem. I decided to ask this forum as I have been reading many things here and found people very nice and helpful.

    I am in need to use a php function to return a link to one related post. The reason I am doing this is a plugin I am trying to create to create a shortcode which will return this link anywhere in the post.

    Thanks,
    Ivan

Viewing 1 replies (of 1 total)
  • J M

    @hiphopinenglish

    You need to decide how a post qualifies as a related post? Similar tags, categories, author or what?

    This article offers some good advice though.

Viewing 1 replies (of 1 total)
  • The topic ‘Using PHP to return related post url.’ is closed to new replies.
Skip to toolbar