the_permalink()
is actually filtered in the Recommended Links plugin to echo a custom meta field called _href
. If you want access to that field without echoing it, you can use get_post_meta( $post->ID, '_href', true )
.
Try something like this in your loop:
global $post; // may or may not be necessary
$url = get_post_meta( $post->ID, '_href', true );
$width = 300;
echo bm_mshot ($url, $width);
Related Posts:
- how to link post-thumbnail to original img in a lightbox?
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to use relative links on my pages?
- How to filter to output of the get_permalink() function
- Change slug on post creation
- WordPress Permalink changes to question mark (?) in URL
- Is there a user-facing interface to edit an attachment’s permalink?
- Can WordPress realistically handle a site with 500 ‘pages’?
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- Get post title with link
- WooCommerce permalinks [closed]
- Menu Link Redirect Based on Username or User ID
- Performance and styles not working fine after changing permalink structure
- Redirect short-form URL to long-form URL (post_id to post_id + post_name)
- Maintaining two permalink structures
- Enable Minify in W3Total Cache using NGINX [closed]
- Can’t change permalink url after hitting ‘ok’ and ‘update’
- Rewrite user profile URL to be human friendly
- removing index.php IIS 7.5 webconfig
- Sub-category and category in permalink structure
- Permalinks Messed up
- Permalinks changed with WordPress 4.9
- Permalinks broken regularly
- 404 Page Not Found for Only One Post
- How to 301 all posts
- WordPress within specific sub-directories, implicitly not root
- Call to a member function add_rule() on a non-object
- Link to blog index from template
- How to change Post ID during import
- Debugging permalink issue
- WordPress 404 in development area
- Change blog segment of URL
- Custom Permalink
- why some permalinks adding characters/ruining links
- Multiple taxonomies on same permalink rule [closed]
- How to bulk edit image url in featured image and product description?
- WordPress category base not in post permalink
- What’s actually happening when permalinks for custom post types suddenly stop working
- Redirect a Blogger Page URL to wordpress
- Edit page slug after save, cause 404 by linked pages
- Conditional permalink structure
- Auto setup “permalink” or request notice
- How to add .html to the end of the permalink
- IIS 7 Rewrite with parent categories
- get_permalink() always returns empty
- Separate link structure for specific posts (/blog/glossary in stead of just /blog)
- WordPress rewrite_rules_array rule not working properly
- WordPress basic functions show on top in custom shortcode
- Is it possible to install WordPress Multisite on a subdomain with subdirectories?
- Giving a new page an existing URL
- encoded search terms with %20
- Permalinks not working on new site
- Custom links in menus not working in multiple environments
- 404 permalink errors on Pages only
- Remove all stop words from old permalinks
- using wp_redirect to redirect to a permalink
- old permalinks not found
- WordPress permalink from the database?
- Assigning proper permalink to blog that is part of a website
- Display parent page URL for child page
- How to set add_query_arg properly for home page?
- How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
- Double Slash After Media Path (uploads//)
- Make a post inaccessible without a unique ID in the URL
- Undefined variable: testimonial in D:\Projects\PWP-WP\wp-content\themes\blankslate-child\template-parts\fields\flex\bottom-page-block.php on line 123
- Is it possible to set public to false for the native WordPress blog
- Code snippet to add filter pre_post_link to change Media URL (post_type attachment permalink/slug)
- Custom Permalink (with category) for Pages
- Make query parameter an endpoint
- WP adding noopener and noreferrer to all links
- 301 redirects after changing permalinks
- Rename Custom Post Slug using taxonomy
- Link works although page was moved to another location
- Added a prefix in URL permalink structure but the old structure still working!
- Permalink of post redirect to uncategorized category
- Getting current page URL when default permalink is set
- WordPress All pages but home simply read “hello”
- Force/Limit the post/page slug to accept only url friendly characters
- Make Permalinks have a custom format?
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- permalinks of subcategory and posts
- Fresh wordpress installation in sub-directory not accessible
- Define a Permalink Structure by Post and Page
- WordPress 4.0 beta – how to change the link URL in RSS feeds
- Folder Name and Category Name WordPress
- Installing WordPress in another Install?
- using post meta data as permalink tags [duplicate]
- How to display post permalinks instead of pages?
- Incorporate single WordPress page into an existing static website [duplicate]
- How to configure WordPress to be a subdirectory of my main site as mymainsite.com/blog?
- Search points to /search/?s=KEYWORD instead of /search/KEYWORD
- Removing parent page in URL for one page
- Remove index.php from URL
- Siteurl code for links
- Add additional URL variations for a Post
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup
- How to Set Both Category and Sub-Category Level at Root. It should also obey post rule as /category/sample-post and /sub-catgeory/sample-post?