OH I figured it out.
<?php $myvariable = get_the_title( "'. '', false );
echo "<a href="https://wordpress.stackexchange.com/questions/372492/website.com/view/$myvariable">View on website.com</a>";
?>
Hopefully this helps someone else!
Related Posts:
- Accessing $post variable from template part
- Is it possible to query a category with specified posts?
- Stop WordPress automatically adding tags to post content
- WordPress removing tags?
- Post/Page Preview Template
- My ‘post attributes’ is missing from my WordPress install
- posts page – different lengths of excerpt
- Forcing oembeds to top of post
- Use template of parent category for single post sub-categories
- loop not displaying posts on custom template page
- How to add shortcode tags in single.php [closed]
- Including text at the end of every post
- custom single.php not working
- Undefined variable post_id in custom quick edit coloumn
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- How to create shortcode to show the 2 latest posts
- How to display different single post template based on author?
- Display page content AFTER a loop of posts
- Different template for posts of all subcategories of category
- Custom Post Templates
- Single post as homepage?
- Display a post by ID attribute with shortcode
- Change post_date to post_modified date on post template?
- What part of template to edit to remove category name from the top of posts?
- Duplicating Table of Contents for Paginated Post
- Query how many items to show in shortcode
- How can I pass the ID of a post to a page template by clicking a url?
- get_the_content(“more…”) returns full text
- Is there a straight-forward way to iterate over all shortcodes in a post?
- Using custom post template
- What is the filter or hook to add admin controls to posts on the front end?
- How to display Common posts from specific Tag & Category with Shortcode
- Setting posts_per_page for taxonomy term template
- Switch to page template when using post permalink
- Genesis + Ajax + Jquery | Failling to call action
- Get Page ID of blog homepage
- Shortcode and whitespace formatting problem
- Send post id through ajax and get the post content back
- How to create new post content templates for my users?
- Shortcode to display the latest news article within a page
- Shortcodes on my website stops working after theme update [closed]
- How to get ID of the page included with get_page()?
- How to get a post’s details by shortcode?
- Hide a specific post from a page template
- Why won’t pagination work?
- Create a custom posts page
- how to set social icons to product / post template (Auros theme)? [closed]
- How come a YouTube link isn’t transformed into a shortcode inside the post content?
- showing posts of an specific category in admin custom menu with style of admin posts section
- Display a post via template
- Why aren’t paragraphs breaking on this page?
- Single post full screen template not inheriting WordPress role permission
- How to set a certain Custom Template to a Single Blog Post
- List all native posts in template page?
- HTML Inside of Shortcode Breaks Shortcode Output
- Sidebar on single.php not showing up
- How to Featured content with images in home page?
- Post Templates and Post ID’s
- Trying to query all posts in category 4
- Output Buffer Issue with Single Post View
- Prevent 404 of Author pages without posts
- Custom post type and taxonomy page templates
- How to save template data into wp_post table (post_content column)
- 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
- shortcode // get posts by ids
- How can I create a shortcode to show the number of posts of actual day?
- How do I change the template specifically for single posts?
- How to pull sticky post permalink inside php?
- Display Post from Custom Post Type with Shortcode
- Post not using taxonomy template
- wp_insert_post() Add and specific ID to the body of that
- Why does my “Add New Post” page have an old post in it?
- Customizing a new page used for blog posts with Avada theme
- How to Display Most View Post in the template file?
- Use special template for the first post in the loop
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- How to change post template via url?
- how to remove entry meta from wordpress archive category and change its display
- How can I display a specific number of post in a category via a url
- Add category attribute to custom recent post shortcode
- Using Post ID and Page ID in same function
- How to arrange different post categories in template
- How can I change the look of a post as is displayed
- Change the default video URL in a post to shortcode format
- Display the first post’s comments of category in comments.php template
- how to style an individual page in a category [duplicate]
- How to display a certain template element only for posts published within certain time range?
- Redirecting posts in WordPress to a specific page
- Get attachment if matches a variable
- If post has non-shortcode string
- How do I create a template page to show 3 blog posts?
- How to add a new page that will function as a separate blog/news article page
- Trying to create shortcode listing custom posts, but formating not being included
- excerpt in template for specific page
- Tag page that displays specific posts
- How can I locate the single buddypress forum post template? [closed]
- Simple shortcode to check if a user has commented on a certain post
- Undefined Function Fatal Error with Shortcode [closed]
- How to use shortcode to get the second to newest post?