try this
$post_id = 11;
$post = get_post($post_id);
$slug = $post->post_name;
<a href="https://wordpress.stackexchange.com/questions/196045/<?php get_site_url(); ?>/abstract/<?php echo $slug; ?>" title="<?php the_title_attribute(); ?>">Abstract</a>
Related Posts:
- Disable Attachment Pages Completely
- How is WordPress manipulating the posts like there are folders?
- 200 Rewrite blog post links
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- .html end of URl affected to SEO?
- understand what code is doing when prepending /blog
- How do I generate formatted permalinks as specified in backend options?
- How to update custom fields using the wp_insert_post() function?
- Alter query on edit.php
- Permanently remove first image from posts
- Insert code when users come from an specific referer
- How to display related posts from parent category
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- Styling images coming from another blog
- Exclude posts from homepage having a specified tag
- How can I use wp_query to show all product data using just the products ID?
- Retrieving Author ID in wp-admin area
- Can’t get wp_insert_post to work
- Why not yield/iterable in posts interface?
- Best practice for migration friendly images in posts/pages?
- Loop through categories and display posts title under each dropdown
- Second transition_post_status hook fired instead of the first
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- How to use $_GET function WordPress backend
- How to store post ID’s in cookie or session to display the same posts later
- retrieve post data and insert it in seperate static html page without WordPress
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Returning data instead of echoing/printing
- Display related posts without a plugin
- Counting Search results, and displaying the offset per page
- Function works everywhere, how to keep it to execute when creating a new post
- WordPress query undefined offset in loop
- Divi change project category slug
- Find Site ID From WP_Post
- WP_Query: getting posts where custom field exists
- Reading settings in the home page precisely home.php
- get post id from wp_insert_post for get_template_part
- Displaying list of posts in category page
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- Displaying content on posts page based on category
- how to make an array of post id’s in is_single
- array_rand not working correctly?
- WP_Query() load selected post
- Unable to render custom field after attempt to generate a list of recent post in page template
- Creating a Category Taxonomy
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Insert PHP code in Text
- Categories Listing and Highlighting current category item
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Advanced Query posts
- My worpress search page is showing no results
- duplicate posts with ajax load more wordpress
- 404 on old link after changing post url
- My Custom Post Type AJAX Query is Returning no posts – why?
- How to display 8 posts in four columns and 2 rows on a carousel slide?
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- Don’t update modified post date when user add a product review or comment?
- Limit the number of characters/words in an excerpt for a related posts section
- Show a text if the post has written by author user role in WordPress
- Permalink changes after several minutes after saving post
- Getting info about selected posts using one WP_Query
- Closing Comments conditionally in comments.php
- Change upload URL by mime type
- Having trouble with customizing blog posts on the home page
- News post with multiple permalinks? When opened from different page
- WordPress post insertion from PHP file
- How do if all posts has this category ID then do this
- Make sticky post with FacetWP
- Getting page / post URL on publish and / or update
- Getting error in sql query
- Insert div after every three posts in home.php [duplicate]
- PHP tag in post content makes wordpress go crazy
- Unable to get Post Category Name and URL
- Dynamically Create Posts Via XML File
- insert thumbnail image from php script
- Weird Behaviour: Not all WordPress Posts appearing
- Dynamic form variables for post meta
- WordPress Rewrite Issue
- Would it be possible to route WordPress Through an MVC Application
- Adding category in wordpress – custom
- Query category-specific, paginated posts and allow viewer to change sort order
- Auto create description in post
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Different image and background color depending on page type
- Get permalink for a post from inside WordPress and route to a related site
- Posts sortable column not sorting properly for custom field numbers
- Make a permalink to the most recent blog post
- HOW TO Insert Existing PHP Code to WOrdPress
- Accessing WordPress Functions get_permalink() in Vanilla PHP?
- How to list all the posts in a personalized page? WordPress
- Disable single posts, but keep archive
- Add multiple HTML attributes to an Elementor button
- How to create a WordPress PAGE in another folder?
- How do I get a function to work in single.php
- Count the number of matching post names in foreach loop
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- Remove slug of multiple custom post types with and without hierarchical