You need to switch get_permalink
to the_permalink
or echo esc_url(get_permalink)
.
Related Posts:
- Get the blog page URL set in Options
- How to set permalink structure via functions.php
- Are content.php and content-single.php the same?
- Different ways to display title
- How Do I Programmatically Force Custom Permalinks with My Theme?
- Responsive class to all the images in the content
- query posts in wordpress
- How to hide and content from auto-generated excerpts?
- the_content() in single-{post-type}.php problem
- Link won’t show using the_permalink();
- get_query_var() and permalinks
- WordPress custom post type permalink: website.com/post-name/post-id
- show a post from a specific post format
- Displaying recent post excerpts on static front page
- Using $post->post_name in body id causing error: Trying to get property of non-object
- Force Balance Tags not working
- Filter categories used with Custom Structure Permalink
- How to make permalinks update from code?
- How to place HTML tags in content from the_content()?
- Default Permalink Type to Postname
- Custom Blocks as part of a theme
- How to set a page as homepage in stead of the newspages?
- The Content is not Wraping in tag
- Edit value of the_content() before showing
- 2 loops, is_home won’t work, count is off
- wordpress 404 not found after rewrtie the author link
- Issue On Displaying Pages with Post Name Permalink
- Issue on Getting Custom post type Thumbnail’s URL
- WordPress page/blog incorporated into static website
- Why tags are displayed bellow the content and not inside
- Show specific category posts on Genesis framework home page
- How to create query to get top 3 sticky/latest posts
- Post and page content not displaying in search results
- Single.php the_excerpt loads same as the_content not loading read more line
- pre_get_comments or the_content filter
- WordPress Load Only Page Text
- Only the latest post shows up on post page?
- Read more doesnt work with query posts
- How to remove permalinks links presents in each page of my site?
- Stop WordPress from showing images on non post pages
- Allow filtering of loops for all categories
- If I remove Category base from my URLs, how difficult will rollback be?
- What are the permalinks options for “Category” base and removing it?
- How do I open a post in a custom page in wordpress?
- Does single webpage do not need navigation to create a slug in permalink?
- Custom Static Page to Display Blog Posts in Excerpt Non-Singular Form (is_singular not working?)
- Strip HTML tags on custom code from the_content
- Suppress the_content filter in a nested loop
- Mamp pro permalink issues. Pages keep reverting to index.php
- Confused on loading page content
- Permalinks problem with custom theme
- Permalink Setting Changes From Post Name to Default After Changing The Page Name
- Configuring static page with add_rewrite_rule gives 404 after navigating to Permalinks admin panel
- Return the_content() with custom div class for a subset of posts
- Import media to online WordPress from local development
- How to add a checkbox element to attachments editor with example
- Auto get_header and get_footer on every template?
- Theme Check gives: Required: This theme doesn’t seem to display tags?
- Is it possible to use line break in theme description?
- Override Current Theme Setting in wp_config.php
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- WP Gutenberg custom block – generate theme colors from SASS and use them in the inspector and php callback
- Is tag default in WordPress?
- Getting jquery to work with custom theme
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- Why does WP recommend against custom favicon functionality in themes?
- What’s the best action to use when you want to do something only once per theme setup?
- Excluding a page with a certain name from wp_page_menu
- Widgets with groups / sub widgets? Widget in a widget?
- Avada resources still loading from localhost after database migration [closed]
- How do I create a custom partial / template?
- How should I be handling my theme version numbering?
- What can I use for small text when converting to WordPress?
- Integrate WooCommerce theme with a WordPress theme [closed]
- Automated Footer information
- How to develop a menu like wwe.com?
- How to escape multiple attribute at once in WordPress?
- Override plugin option by with a custom theme
- Review site using WordPress
- Fatal error: Class ‘ZipArchive’ not found
- Is it possible to determine when user is at “Media > Add New” vs “Post > Add an Image”
- Running a function on post update with new post meta
- Check if( selected() )
- Modify available templates (in dropdown)
- Change WordPress Resource URL
- Adding content inside the anchor tags within WordPress main nav
- Theme calling page.php instead of home.php
- Open portfolio image in light box
- style variations hurt the editing performance
- No templates for condition page.php Elementor
- How to get custom logo with REST API instead of get_theme_mod();
- How can I change this SVG shape that’s generated?
- Can I set rest API endpoints from within a theme?
- Theme starter content translation is not working
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- remove_action(‘genesis_header’,’genesis_do_header’) hook not working
- Different stylesheet for different pages not working fully
- wpalchemy repeating fields dropdown issue
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- Is there any reason that other theme elements (such as nav menus) shouldn’t be within the loop?