Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Link Posts to External URL

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.

Related Posts:

  1. Show Similar Post Titles ( Similar to Stack Exchange )
  2. How do I unlock a post programmatically?
  3. Delete Post With No Traffic?
  4. Automatically Creating Posts for Popular Forum Topics or Products [closed]
  5. Updating post meta for custom post types
  6. WP get_permalink Return Wrong URL
  7. Is there a plugin to display certain posts on certain pages? [closed]
  8. plugin for wp_list_categories with posts
  9. Replace existing pages with new pages, keep menu links
  10. Set attached to state
  11. Use plugin or custom post type for game score functionality
  12. How to change ID of an attachment in wp_posts and its related tables correctly?
  13. Output HTML only on individual post view
  14. View Private Published Page with URL Code (no login required)
  15. Add category selection to custom post type (plugin)
  16. Redirect to another page using contact form 7? [closed]
  17. Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
  18. Moving FB comments at the end of page
  19. How can i summerize posts or news automatically in word press site?
  20. Delete data from custom table when deleting a post
  21. What snippet do I need to type to show my ACF field show up on my theme?
  22. Is there a way to make [Table Of Content] plugin while not using revision data?
  23. Help to Create a Simple Plugin to make a post
  24. Get value from an input field and pass into update_meta_data as $meta_value
  25. Style WordPress Custom Post Type Single Page
  26. Posts are deleted everyday at night
  27. Issues with Post 2 Post Plugin
  28. Get page type to display content
  29. Get post id in Post Page within Wp-admin
  30. Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
  31. Looking for membership style plugin with edit option [closed]
  32. How to show custom post type in all post section?
  33. Manually add order item with fixed product_id in WooCommerce
  34. FacetWP group listings by custom field [closed]
  35. How to modify shortcode attributes with data from current post
  36. ‘Customize’ button in admin bar for CSS
  37. Post query – show posts from specified day and month and whole years
  38. Where to hook my plugin’s action
  39. Auto delete WordPress users according to time
  40. Is there a way to order posts and custom post types as one group?
  41. Plugin Customization Lost During Plugin Upgates
  42. Is there a filter for get_post_custom()?
  43. Execute a plugin only on post pages
  44. How can i list random post from multiple category?
  45. Support for simultaneous editing
  46. dynamically generating plugin syntax
  47. How to import my YouTube channel into WordPress?
  48. How to get 1 or 2 specific posts on top of my wordpress blog?
  49. Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
  50. Portfolio + Blog: multisite or plugin?
  51. Custom Field Template seriously messed up in WP 3.1.1
  52. My Category is too big on the Menu what can i do?
  53. how to load the language file in plugin?
  54. Plugin upgrade issue
  55. How to use get_theme_mod in gutenberg editor wordpress?
  56. Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
  57. How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
  58. Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
  59. Accessing post’s meta data based on user’s click of a post
  60. WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
  61. How can I capture Memberpress user info after signup [closed]
  62. My plugin wants to update another plugin
  63. I have no idea “How change font for elements in widget?”
  64. With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
  65. JS Support Ticket – Auto create WP account
  66. How to show Recent Page instead of Post?
  67. Remove Duplicator plugin from admin menu if not an administrator
  68. The problem with WordPress Importer
  69. Input with spaces in Shortcode attributes overwritten by defaults
  70. Cron job not firing
  71. Solutions to repost categories into multisite blogs?
  72. How to enable qTranslate languages tabs in custom plugin page
  73. How do I “get the next 10 posts after post_id == x”?
  74. Hiding posts – WP Hide Post not working
  75. Add a custom form on the post-new.php admin page
  76. Create digital-virtual-downloadable WooCommerce products from the frontend using Gravity Forms? [closed]
  77. Removing customise fields during plugin uninstallation
  78. Edit Yoast SEO breadcrumbs output [closed]
  79. What’s the best way to implement AJAX in WordPress?
  80. How to Create a Custom Panel and Fields in Post Page [Plugin]
  81. Translating long texts with html formatting
  82. submit posts by unregistered users in wordpress
  83. Calendar Solution: Handling upcoming Dates with Posts?
  84. get_post_type on post.php
  85. Is there an easy way to flag posts in the admin area?
  86. How would I go about creating a user ranked post popularity page?
  87. What is generating my meta og:description?
  88. finding whether request is for post, and post id
  89. Anonymous Postings
  90. Do widget options need to be escaped widget()?
  91. Is there any W3C compatible Share & Follow plugin?
  92. Any built-in function to associate a post to category through a plugin?
  93. Does any one have Idea to get these functionalities with the plugin wp-multi-network
  94. How to hide some section in WordPress under Post
  95. Display post lists in 2nd paragraph
  96. Can’t delete Draft Post [closed]
  97. Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
  98. Matching Chapters to a Custom posts [closed]
  99. Disable woocommerce cookies and delete cart data automatically
  100. How to display the “ratingValue” and “ratingCount” values ​generated by the KK Star Ratings plugin into my page’s recipe ld+json schema
Categories plugins Tags customization, plugins, post-meta, posts
disable defaault wordpress comments from a plugin
Modifying WP URL handing code?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress