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?
- Inject post (from specific category) between posts in Loop
- Remove option to allow trackbacks/pingbacks from post page options
- How to get year, month and hour in WordPress?
- Handling an Ajax form submit
- Print number of post (in reverse)
- Use template for posts with a particular category grandparent
- Count number of published posts by type
- Automatically generate Post/Page from searched Database item?
- Get taxonomy terms only of the WP_Query current posts
- How to get 2 or multiple custom post types in wordpress functions.php
- Displaying a button on each post
- Hide post if matches current month and year
- Do changes to WordPress permalink custom structure affect old urls?
- Creating bulk posts with Youtube videos
- How Display Posts on category
- Getting a specific post values to another div or modal
- Unreadable pagination
- how do I get a specific post from a post with a subcategory in WP
- Open post-content in archive page in a Modal box with bootstrap
- remove post that has no content
- Custom posts in different columns style
- How to show only subcategories in parent category not parent category?
- Which PHP page is the Default Posts Page
- WP Insert Post and then go to post
- get_template_directory_uri() providing wrong path for img
- Get latest post from all categories except one
- Parse error: syntax error, unexpected end of file
- stripping tags from excerpt in WordPress is not working
- Automatically add images to a menu
- Load Posts on Click via Ajax into a DIV
- Store metakey value as an array
- Only show first image in foreach loop
- create front-end users post list by specific category
- show recent posts php code error?
- Error display post thumbnails for previous and next post
- Post to WordPress from another Server via PHP
- Search only working on front page (index) , not working on other pages
- form $_post action value gets truncated after it passes through two forms
- WordPress theme showing blank page
- Strip hashtag off permalink with php
- Wp Query : Order by distance lat,lon
- remove specificly the last tag in all posts
- Pagination at category doesnt work with same name of page
- Add posts to custom table in database instead of wp_posts
- get value from get_post_meta then reuse it in another get_post_meta
- How to show categories and date on posts
- WordPress Post Block Element not properly parsed with the_content filter
- Build A Custom SQL Query for WordPress Search
- Allow two posts (from different categories) to have the same slug
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- How to Send Pingbacks for all Posts in WordPress?
- Display articles with a different template in the home page | Solved |
- How can I check if a post with a particular slug or title exists?
- WordPress sorting posts by date and title using a dropdown
- Query on a repeater date (acf)
- Trying to get post ID outside loop on blog page
- Rewrite rule not working, but only when parameter is text
- Trying to show the category of a post in the post display
- Split post or page content in two or more columns
- Enqueue script only on child pages of custom post types
- Attach and retrive multiple pdf files to post or page
- Check the database for a postmeta field
- Post permalink buttons all going to the first post
- Send POST request to Flask app from functions.php file
- WordPress/NGINX not respecting the category URL for new posts
- Get list of posts from attachment
- Send Notification after post published was working but stopped after the last WP update
- Permalink like example.com/taxonomy/post_type/postname
- How to insert text into post based on category – via single.php file
- When working with a post, almost all wp_postmeta are deleted
- Let user select the number of posts shown per page jquery error
- Displaying POST content with HTML tags and all
- Generate random access token to a post page
- Pagination in WP Queries
- Add div after every 4 posts then every 2 posts for a responsive loop
- Only display notification on single post
- Get posts associated with media attachment
- Can’t put a hyperlink on Featured Post’s Image
- Passed variable gets undefined variable error on insert on next page
- Weird slug in archives permalink
- WordPress get_post_meta issue
- Newly published content gives 404 on wordpress
- Automatically create a loop for post ID
- Why does WP_Query show only the same post even with different categories and endwhile?
- Display pages from specific page template
- get_permalink returning first letter
- Query posts by custom fields (object post)
- How to display the date under the post title?
- Excerpt all post content Content Same Size without word cutting off
- how to goto specific page number including title with permalink
- How to extract URLs from wordpress taxonomies
- WordPress 6.1.1 UTF8 Slug Limit Increase