It seems like, you have added permalink for categories inside span
tag. Where do you want to add permalink actually?
If you want to apply permalink for post title, then add permalink inside <h4>
tag. currently your href
is empty inside <h4>
element.
<h4 class="post-title">
<a href="<?php echo get_the_permalink() ?>"><?php the_title(); ?> </a>
</h4>
Related Posts:
- Search custom taxonomy term by name
- Determine WP_Query parameters from URL
- Get the post permalink within the loop but without additional DB query
- Multiple instances of Featured Image Query
- Rewrite rule to prettify two $_GET variables while in a new endpoint from a page
- WordPress add_rewrite_rule() cannot visit lower url levels
- How to display an other custom post type in a different custom post type’s archive?
- How to get list of posts from permalinks?
- WP_Query Attachment adds additional attachment count and need to link attachment to post url
- Pagination for blog posts reloading same page [closed]
- Default permalink structure causing Notice: Undefined property: WP_Query::$post
- Loop posts based on permalink term
- Add URL Rewrite Rule To WordPress
- Getting the permalink to the latest post from a category
- Custom Taxonomy Breaks Pages
- Generate custom output on URL with directory
- How to get child pages and add unique class only to active page?
- How to make WP_Query ‘post__in’ accept an array?
- WordPress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given
- Merging multiple wp_query objects
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- Using custom meta_query with relation not working as expected
- Nested query inside Logical operator OR not working in meta_query
- SQL Statement generated by WP_Query not producing expected results
- Only show first post to match certain criteria within WP_Query
- Best practice for multiple queries on page
- How to order a post type with meta_value_num and if meta_value_num does not exist then order by date
- How to find out what “Blog pages show at most” is set to [duplicate]
- difference between $wp_the_query and $wp_query? & getting the values properly [duplicate]
- Ignore/Skip default value on orderby menu_order?
- WP_Query order by date in meta_value
- WP_Query pagination not working in admin area
- Custom Field sort not working (WP 3.8.1)
- Get post ID’s from one query and exclude from another
- What are the differences between “Latest Posts” and “Static Page”?
- WordPress Query is taking more then 20 second and stuck on creating index
- Modifying raw $_POST data early in the lifecycle
- Get the Plugin Which Triggered a MySql Query in WordPress?
- Difficulty with rewrite rules
- Show selected images on top in Media Manager
- WP User Query get all authors with last name starting with specific letter
- Is there a way to include a post multiple times in the same query result?
- showing all search result in one template
- WP Query Args – Title or Taxonomy Value
- Ajax WP_Query reutrns no results on author.php
- Large AND OR query timing out
- WP_query wp_posts_counts returns only count of admin and not users
- Categorising search results based on Custom Fields
- How to query for all posts that have a particular meta key?
- Custom taxonomy.php not working
- Ajax future single post query doesn’t work when NOT logged in
- Conditional sorting with variable using WP Query
- Get multiple users with meta value in one query and populate WP_User class
- WP_Query calls all posts?
- WP_Query Taxonomy categories filtering
- WP_Query: apply an SQL function to meta fileld value
- The best way to store variable across different widgets
- Assign a minimum result count for WooCommerce query shortcodes?
- WPQuery calling specific posts problem
- Retrieve data from wordpress db via input and put those result in dropdown
- Filtering by multiple conditions in the loop
- Limit loop to future events
- How to access $wp_query object from array of posts given by get_posts?
- Echo User Name from User with most comments of today?
- Custom wp_query differs on index page and category page
- WordPress Queries Not Working?
- Links in the_content not linked
- how do I write this wp_query select statement?
- How to make a post with certain taxonomy term display first before other post with only one query?
- Exception for excluding previously displayed posts in queries
- Post incorrectly excluded when using “category__in”?
- How do I compare the value of two taxonomies in a wp_query
- query hook parse_tax_query function takes no effect
- Categories In English version showing not canonical URL, instead shows query search result
- Related posts queries
- Check for not NULL not working in meta query
- Display hierarchical structure of Custom post type in UL LI
- Pagination for Category does not work
- Query against multiple locations within single custom post type post
- ACF query-pass field value
- How to make a search query if not found in post table then search in postmeta table?
- In which file to use $wpdb and its functions for database operations and queries in wordpress?
- how to show more than 1 post into three columns query
- tax_query not working for taxonomy slug
- Problem with infinite scroll on multisite with custom query
- How to Insert data with wp cron
- Get X posts for all post types on Taxonomy term archive
- How to list posts of a given format
- Page displaying 1st post from a range of custom tax?
- WP Query Bug? Cannot find out why posts are not found!
- get contents and permalink from a specified page
- What query to append the 10 next posts?
- How ‘secure’ are loops?
- What triggers these wordpress queries on my homepage?
- How to do a loop inside a loop?
- Pagination not working in secondary query
- Only display posts that are in multidimensional meta_value
- get_post_meta bringing back results, but $wpdb->postmeta doesn’t
- WordPress WP_User_Query ignores the `meta_query` when called from an Ajax function
- How to include custom fields in wordpress search