get_the_permalink() returns the permalink as a string and doesn’t echo it. You either need to echo this yourself
<?php echo get_the_permalink(); ?>
as you’ve got in some of your other <?php
tags, or you can use the helper function the_permalink() which does echo
<?php the_permalink(); ?>
the same pattern as you’ve used for the_title().
Note that these aren’t completely equivalent: the_permalink() applies an extra filter, so it’s probably worth using that one in case some other code you’ve got does use the filter.
Related Posts:
- Rewrite rule not working, but only when parameter is text
- ACF values to Script with auto refresh
- ACF relationship on user profile page used for allowed access
- ACF – Can’t get custom post type by taxonomy
- Advance custom fields variable with if statement & Function
- ElseIf Statement with ACF Group field
- How does Permalink work with the AMP plugin after Removing Parent Permalink Catalog from Posts
- Advanced Custom Forms PHP formatting for do_shortcode
- Get WordPress username to customize url
- Possible to edit custom date field and display?
- Get field value and use as variable in php
- Place product field value as variable in php
- ACF Gallery field images donwload
- Permalink doesn’t navigate to post (changes only url)
- ACF – Get ID of relationship field in flexible content
- Post permalink buttons all going to the first post
- Permalink changes after several minutes after saving post
- How to edit button permalink inside function.php using a child theme?
- WordPress/NGINX not respecting the category URL for new posts
- ACF under category name in shop page [closed]
- get_template_part() not working with Advanced Custom Fields plugin
- List all ACF field values across every post on one page
- WordPress generates weird permalinks
- Get list of posts from attachment
- Javascript Tab Gallery with Advanced Custom Fields
- How to output values from a loop into a javascript array
- Pulling Products from an API
- Permalink like example.com/taxonomy/post_type/postname
- How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days
- image on homepage disappeared due to change of permalink name
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- ACF background-color per post in a WordPress loop
- How can I copy an ACF field to AIOSEO field? [closed]
- Scheduling a post using publish date from a custom field. Resulting post is set as published in the future instead of scheduled
- Make sticky post with FacetWP
- Custom content using in_category
- Generate a radius search of custom post type locations
- What is the proper way to call a function (from functions.php) on a link click?
- WooCommerce Custom Tab with ACF Repeater Field
- Ordering / grouping posts by datepicker ACF
- PHP for loop not working as intended
- Position a repeated article blocks
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- How do I generate formatted permalinks as specified in backend options?
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- 403 Forbidden Localhost Wamp Apache Php
- Display a single row from nested array of custom field data
- Else if Statement for Advanced Custom Fields [closed]
- redirect 301 with special character like WIX site “#!”
- ACF Images If/else
- Permalinks and custom PHP application
- How to solve 404 permalink errors on nginx server
- Some links broken after updating WordPress version
- add_rewrite_rule questions
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Weird slug in archives permalink
- WordPress Rewrite Issue
- Would it be possible to route WordPress Through an MVC Application
- Sort by multiple options in custom field
- Newly published content gives 404 on wordpress
- If or/and statement advanced custom fields [closed]
- set new link as permalink
- Multiple URL from Custom post name
- echo variable containing html and the_permalink();
- Top menu disapears in Category Pages when filtering using ACF
- ACF loop and php formatting
- append links with unique number string
- the_post_thumbnail unless video id is added
- get_category only returning details for ‘uncategorized’
- Custom field within shortcode
- get_permalink returning first letter
- Get permalink for a post from inside WordPress and route to a related site
- custom data in url
- ACF allow zero as a value
- Make a permalink to the most recent blog post
- Add comma between variables [closed]
- ACF Date fileds to Age Convert [closed]
- Advanced custom fields Repeater conditional statement not working [closed]
- PHP code for link with text
- Order woo products, but first products must be with acf fields
- Remove /category/ from category (archive) page URLs (without using a plugin)
- Accessing WordPress Functions get_permalink() in Vanilla PHP?
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- WordPress add parameters with friendly url structure
- Add any username as link prefix and show data from that specific user’s profile on wordpress pages – with no login required
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- Show button in header when product custom field is not empty
- how to goto specific page number including title with permalink
- How to extract URLs from wordpress taxonomies
- advanced custom fields: repeater field within conditional statement [closed]
- WordPress 6.1.1 UTF8 Slug Limit Increase
- How can I get values from a custom post type depending on where I click on my SVG map?
- why css file not link?how to create permalink?
- Creating posts with php-script + csv
- ACF number less than comparison not working
- How to automatically flush permalinks?
- Advanced Custom Fields – How do I get field values of a group within a group field type
- Post returns 404 after changing the permalink using post_type_link
- Display posts in correct month order using single date custom field
- Cannot access the other pages after successfully editing post type