To render the shortcode output with a clickable link while it still looks like a shortcode, you have to replace the built-in shortcode:
add_shortcode( 'video', 'wpse_96840_literal_video' );
function wpse_96840_literal_video( $atts )
{
$url = $atts['url'];
return '<code>'
. sprintf( '', $url )
. '</code>';
}
Result
Related Posts:
- Stop WordPress automatically adding tags to post content
- Access post from post id in URL
- How to add category to: ‘wp-admin/post-new.php’?
- How to Check if a Page Exists by URL?
- WordPress removing tags?
- Strategy for handling hierarchical pages with empty parent content
- Open WordPress ‘Add New Post’ admin page with parameters set via $_GET
- Update all posts automatically when using post_meta
- Search & Remove Specific Shortcode From All Posts
- How do you get all the urls of images attached to a post?
- Shortcode Not displayed at the Right Place [duplicate]
- Automatically added brs and paragraphs?
- How to allow slashes in single posts when i click in the edit permalink button
- Specific loop in Shortcode
- Possible to create a permalink to sort with meta_key?
- how to grab first link in post… and of course call it
- How to convert query sql to shortcode in wordpress?
- How can I add 2 buttons with shortcode
- Why aren’t paragraphs breaking on this page?
- HTML Inside of Shortcode Breaks Shortcode Output
- Inserting Media to WordPress Posts
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Shortcode for tables which can include comma and linebreaks
- Can Permalink structure of %postname%/%post_id% improve performance
- post/page content
- How to prevent to create same url of post, if the previous was deleted?
- Can I show category name in url for only one of my categories?
- WordPress posts have a different URL to the index
- Change published date and time using SQL query for page in every 5 hour
- What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
- Shortcode for Comments and Comment Boxes in Post Loop
- get category in list of posts // shortcode for custom related posts
- shortcode // get posts by ids
- Display “no post” message
- Posting to WP via URL
- How to bulk Update URLs to new values?
- How can I create a shortcode to show the number of posts of actual day?
- Permalink Short code showing unnecessary link text inside the loop
- Every time I try accessing a post it redirects me to the feed
- Featured Story Shortcode not outputting content
- How can I make a post sub link?
- Function is printing twice – any suggestions?
- How to pull sticky post permalink inside php?
- Contact Form 7 Shortcode not recognized inside another shortcode
- Display Post from Custom Post Type with Shortcode
- wp_insert_post() Add and specific ID to the body of that
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- How to add a ‘News’ section to specific posts in WordPress
- Add a url parameter to the current post and read it in a shortcode
- Template for displaying CPT / Taxonomy URL issues
- Change WordPress names duplicate titles (url)
- How to generate an HTML link automatically from URL in a users’ post
- Prevent Archive URLs
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- Category URL to use same string as Post URL Permalink
- I need show posts by customer (Shortcode)
- Querying posts from current category, using a variable as array argument
- Is it possible to query a category with specified posts?
- If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
- Multipage Post URL correction
- Shortcode: How to add custom posts?
- Post & Category Archives URL structure
- Post URL duplication adds numerical value
- WordPress URL question
- Embed image in post from external url
- structure of posts and pages
- How to change post template via url?
- How to retrieve a post by inputing the url in a custom field and displaying it on an options page
- Post as frontpage – avoid duplicate content
- Custom URL Structure for posts with subcategories
- How can I display a specific number of post in a category via a url
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- Add category attribute to custom recent post shortcode
- Shortcode for printing post titles
- How to use extract shortcode in loop?
- Create custom URL with different levels
- Using Post ID and Page ID in same function
- Moving Posts to a new site and maintaining URLs
- Make Show Notes for Individual Podcast Episodes Easy to Find (multiple URL’s?)
- Rewrite a specific Post Format to URL slug
- Display only posts with comments
- Choose options via url
- How do I add an article to specific page?
- get value from post to sidebar
- WordPress Yoast SEO plugin Post Save/Update Issue
- If post has non-shortcode string
- Insert Shortcode exactly at the end of the content
- Trying to create shortcode listing custom posts, but formating not being included
- Default post type doesn’t display in url
- Do I need to create a multisite for querying posts from multiple WordPress sites?
- Post page still linked to old site
- Blog posts are not appearing as subs of Blog Page
- Simple shortcode to check if a user has commented on a certain post
- Undefined Function Fatal Error with Shortcode [closed]
- How to add paraent in Blog post URL in wordpress
- How to use shortcode to get the second to newest post?
- Modify Post URL Programmatically
- How can I strip a single tag from an email post
- How do you export and import wordpress blog posts and exclude pagebuilder shortcodes?
- Shortcode in loop always display data of first post on the page