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
- How to add category to: ‘wp-admin/post-new.php’?
- 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
- 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 add shortcode tags in single.php [closed]
- How can I extract the URL of a link from a post?
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- How to create shortcode to show the 2 latest posts
- Create a separate JS application for an individual post?
- Remove Shortcode […] from Blog Preview
- Display a post by ID attribute with shortcode
- UberMenu list current user’s posts as menu items
- Random post category URL
- Duplicating Table of Contents for Paginated Post
- Query how many items to show in shortcode
- How to get rid of shortcodes in post content once and for all
- Assign category to new post via URL
- filter RSS feed in URL
- What’s the best way to render Visual Composer in posts, not pages?
- display-posts shortcode attributes have no effect
- Shortcode and whitespace formatting problem
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Start post pagination at 0 instead of 1
- Redirect to another page using contact form 7? [closed]
- How do I Redirect a WordPress Page?
- How to get a post’s details by shortcode?
- Linking to pages/posts within the site
- WP move posts to different path
- Make insterted image point to post url instead of attachment page
- How come a YouTube link isn’t transformed into a shortcode inside the post content?
- Post is blank when I click on the link
- How to get the latest URL of my blog?
- 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
- Can Permalink structure of %postname%/%post_id% improve performance
- post/page content
- Can I show category name in url for only one of my categories?
- 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 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 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
- 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
- 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?
- 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 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
- How to use extract shortcode in loop?
- Create custom URL with different levels
- 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
- Insert Shortcode exactly at the end of the content
- 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
- Undefined Function Fatal Error with Shortcode [closed]
- How to add paraent in Blog post URL in wordpress