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
- How do I access the current post object within a block theme template or pattern?
- Menu items description? Custom Walker for wp_nav_menu()
- How to define and link full path to css located at a random folder on header.php
- Sizing screenshot.png without losing aspect ratio
- Software for WordPress Theme and Plugin Development? [closed]
- When to use is_home() vs is_front_page()?
- What is the preferred way to add custom javascript files to the site?
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- Worthwhile to restrict direct access of theme files?
- How Do I Protect My Premium WordPress App Theme from Copying?
- How to detect mobile devices and present them a specific theme?
- Using wp_add_inline_style without a stylesheet
- How to add posts to custom menus?
- WordPress Theme Preview Image
- How To extend WP_Customize_Control
- What is the difference between front-page.php and home.php? [duplicate]
- How can I get page slug
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- When to use _e and __ for the translation?
- What is a Theme textdomain?
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- How important is it to enqueue a theme’s stylesheet?
- CSS not updating in browser when I change it
- Display Search Result Count
- wp_nav_menu(), how to change class?
- theme path in javascript file
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- Making update notification functionality for my themes
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- How do I remove a pre-existing customizer setting?
- Minimum Template Files for Theme Development
- What’s the difference between home.php and index.php?
- pass object/JSON to wp_localize_script
- get_template_part vs action hooks in themes
- Theme Activate Hook
- Solutions for generating dynamic javascript / CSS
- wp_redirect() – headers already sent
- Can I create my own “Recent Posts” widget or customize the existing one?
- Custom single template for a specific category