Did you use it like that??
<a href="https://wordpress.stackexchange.com/questions/141318/<?php get_permalink($id); ?>"><?php the_title($id); ?></a>
for use to that
foreach($ids as $id){
$link = get_permalink($id);
$title = get_the_title($id);
$links .= '<a href="'.$link.'">'.$title.'</a>'.'<br/>' ;
//$links .= $link . ' <br>';
}
Try to use that while I’m coding your code.
Related Posts:
- the_title() and the_permalink() won’t work on AJAX calls
- get the_title_attribute by id
- Change media item permalink
- Creating custom permalink structure for languages
- Permalink not working for page without title
- What is the difference between get_permalink vs get_the_permalink?
- Is the permalink structure /%post_id%/%postname% faster or slower than just /%postname%?
- Post titles not letting me use 2 consecutive dashes in permalink
- Using underscores instead of hyphens in the permalink
- How can I force WordPress to redirect to canonical permalinks?
- How can I add dynamic page url in WordPress?
- How to use author id in post permalink
- Custom Rewrite with Query vars
- Change link to other post to shortlink in the editor
- Rewriting permalinks with custom posts
- Make Category Base Appear in Posts Permalink (but not tags)
- Getting a 500 internal server error ONLY on wp-admin/options-permalink.php
- How to Modify Existing Rewrite Rules?
- Top level Pages redirecting to homepage!
- Image Attachment Url Rewrite
- Rewrite Page with a slug before page name
- Permalink settings not saving
- Permalinks keep reverting to 404 unless I re-save them
- Permalinks okay some pages but 404 error on others
- How to add_rewrite_rule with two parameters to a single view page?
- Permalinks for parent/child pages and custom post types
- Automatically append ID to at the end of specific URLs
- remove sub-category of Custom Post Type from permalink structure
- How to change wordpress category list url
- Need to add trailing slash to all internal links relative and absolute
- wordpress custom post type taxonomy permalink
- Change Permalink of attachment page
- How to rewrite a URL to another rewritten URL without changing the address?
- Update the permalink for one post via wp cli
- How can I make internal anchor links work with WordPress’s permalinks?
- How can I say if a URL is a post, page, or taxonomy archive?
- wordpress how to replace url /bar with foo/bar for custom post type
- Can WP give a value a post ID?
- Page Name and Permalinks
- Getting back a permalink from custom url
- how to get a list of all top level pages
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- how to find duplicated permalinks?
- Permalink sub-routing catch-all
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Exclude single page from permalink rule
- Changing the entire permalink
- How are WordPress Page URLs affected by permalink settings?
- Home page Pagination – Other pages do not redirect to home page template
- How do i get post thumbnail using attachment code
- Access posts while mod_rewrite is broken
- Update page breaks permalinks
- WordPress switch servers
- How to create posts or pages with the names in wordpress?
- Tag pages do not show
- WordPress Posts forced to load as Uncategorized
- replicate url permalink after migrating to wordpress
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Modify post slug before saving
- Permalink refresh, the good, the bad, etc. What is best?
- Xampp 7.3.3 fresh install of WordPress 404 pages unless permalink is set to plain
- Make the blog page a child of another page and rewrite the blog url
- WordPress slug confusion
- Extending page urls without getting a 404
- Author URL using wrong domain after using Edit Author Slug
- 404 on wordpress multisite Permalink pretty URLs
- Cannot publish posts or pages when I change permalink structure
- 404 on pretty permalinks when serving via HTTPS
- Custom permalink gives 404 error only in some pages
- Can I link to content dynamically from a page to a new page?
- Question About Permalink in wordpress
- Create new URL structure for custom post types
- append current user-id to all internal permalinks
- How to find a page in admin based on it’s permalink
- Remove index.php from URL (WP installed in subdirectory)
- Page returns 404 for specific permalink
- issue with the_permalink
- Pagination links for taxonomy archive page 404 error on every page except first
- Facebook Share Permalink Javascript href
- Change all pages permalinks instead of hierarchical to have id of the page
- where is the media permalink info stored in database?
- Different Permastruck Between Ajax Request & Normal Request
- Links after changing hosting and domain
- Category-dependent custom permalink
- How can I get WordPress CPT archives and page templates to work with prettified permalink settings?
- Passing user defined variable into get_permalink
- Problem with multiple tags in URL
- Custom Permalinks and filters?
- Custom permalink structure for custom post type results in 404
- ?posts_type=xxx not rewritten
- Change permalink when page category selected in admin
- Internal Server Error every time I push up my WordPress Project to Heroku
- Category pagination first link works, remaining don’t
- Custom rewrites for pages and categories
- WordPress home page showing 404 error
- Why doesn’t my page know it’s a page (won’t return true for is_page())?
- How to change my URL on intranet
- AllowOveride All causes assetts and Admin Urls to 404
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/
- Standard Htaccess directives disappear by themselves