Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm building a site which lets users to submit links using User Submitted Posts plugin. I want every post title to link to its URL something like reddit. Moreover, User Submitted Posts plugin add URL to each post in the posts meta table. How could I do that?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I just released a plugin that does pretty much that... you may want to take a look at the Recommended Links plugin and see how its done... or if this plugin works, try converting your links to the custom type I'm using and just install this plugin.

My approach was to create a new custom post type for these links, add a postmeta entry for the URL they should link to, and filter the_permalink to refer to the link from postmeta, rather than the permalink for the post. I also created a basic widget to allow users to submit their links, and filtered the_content and comment_text to add voting buttons to each submitted link and comment on it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.