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
- How to get Images included in Post
- Update all posts automatically when using post_meta
- Search & Remove Specific Shortcode From All Posts
- My ‘post attributes’ is missing from my WordPress install
- Shortcode Not displayed at the Right Place [duplicate]
- posts page – different lengths of excerpt
- Automatically added brs and paragraphs?
- Forcing oembeds to top of post
- Specific loop in Shortcode
- how to show all post in my page-grid.php template page
- 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?
- Hide Post comments when displayed via WP_Query
- How only display all post related to category
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Remove Shortcode […] from Blog Preview
- Display page content AFTER a loop of posts
- Different template for posts of all subcategories of category
- Custom Post Templates
- Single post as homepage?
- Templating of a specific post ID
- Display a post by ID attribute with shortcode
- UberMenu list current user’s posts as menu items
- Category Template: Need to display different content on first page of archives
- 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
- do_shortcode within post query
- How can I pass the ID of a post to a page template by clicking a url?
- How to get rid of shortcodes in post content once and for all
- 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
- How can i display gallery shortcode output under Post text
- 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
- What’s the best way to render Visual Composer in posts, not pages?
- Get Page ID of blog homepage
- display-posts shortcode attributes have no effect
- Shortcode and whitespace formatting problem
- Send post id through ajax and get the post content back
- custom post template file not shown, instead all the time 404.php
- How to create new post content templates for my users?
- Shortcode to display the latest news article within a page
- How to create a template for Pages?
- How do I stop the loop from repeating in my category template?
- Shortcodes on my website stops working after theme update [closed]
- posts not showing on index.php
- How to get ID of the page included with get_page()?
- How to get a post’s details by shortcode?
- Add a variable in a post
- Hide a specific post from a page template
- Tell WP to use a specific template file in posts
- How to make different custom post layouts?
- Why won’t pagination work?
- Is it possible to give the user the chance to select between two single template files to use in a post?
- Create a custom posts page
- how to set social icons to product / post template (Auros theme)? [closed]
- How to identify and hide/remove an element from a WordPress page [closed]
- wordpress posts template remove default template from menu
- Shortcode with ‘year’ parameter
- How come a YouTube link isn’t transformed into a shortcode inside the post content?
- Force a specific template as default
- Is it possible to add a shortcode below post title?
- WordPress 302 Redirect to Random Product/Post/Page
- showing posts of an specific category in admin custom menu with style of admin posts section
- Give posts a particular template based on the assigned category
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- Display a post via template
- 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?
- 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
- How do I disable the “by author” hyperlink on posts?
- Trying to query all posts in category 4
- Shortcode for tables which can include comma and linebreaks
- Output Buffer Issue with Single Post View
- add_rewrite_rule and template redirect not working