First, never use query_posts
, use WP_Query
to create additional queries.
When you register your post type, set has_archive
to true
, or a string which will be the URL slug for your post type archive.
You can then use get_post_type_archive_link()
to output the URL to your post type archive.
<a href="https://wordpress.stackexchange.com/questions/210453/<?php echo get_post_type_archive_link("issues' ); ?>"><li>View All</li></a>
Related Posts:
- Minify HTML, CSS, JS with PHPWee?
- Show post in slider
- Add Codepen animation as Preloader to WordPress
- Add other class content with reference class value
- WordPress Slider is not working
- Target a specific container to style on WordPress storefront theme
- Where to find the html for WordPress site? [closed]
- Trying to customize wordpress drop down categories
- WordPress Ajax always returns a 404 error
- WordPress Shortcode and Dynamic CSS
- Nice scroll to wordpress
- Multiple pages on one with different HTML
- Javascript code inside “” in core WordPress files .php
- Archive dropdown styling not applied
- How to display a value from a radio button in the options menu in wordpress
- Slide in Panel WordPress Post
- Shortcode content output but not in correct place
- An unwanted inline style is added to my body tag
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- Slider loading issue
- how to remove metadata from the posts of my blog?
- Populate dropdown with Child Pages based on Parent Page chosen
- search and replace preword from author
- How to change redirection route to a php page for making it only accessible by logged-in members?
- parts of url disappear when using # inside href=”” [closed]
- How does wp_enqueue_scripts work?
- Different post styles depending on category
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Noscript not working as it should in wordpress site
- Wrapping a Sidebar within
- HTML escaping data with ajax requests
- How to add drag and drop functionalities to a div inside option panel
- How to Change CSS Colors from Custom Plugin Settings Page
- Override user-edit.php to design own profile page
- Where can I find the inline-css of my theme header?
- Post repeated when opening in overlay, how do I solve this? [closed]
- Menu Custom Data Attributes
- Highlight the links without using dropdown
- Need help removing […] after excerpt
- Replacing WordPress Icons (menu,icons32, etc)?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Displaying images outside the content
- How to sort posts by active category in WordPress?
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Display WordPress search results based on the selected Sub-Category
- WordPress User Meta value variable into Google Gauge Chart
- Background image no longer fits to screen now that project is in php files
- Search bar for wp menu
- Adding HTML Code to Replace Text in PHP
- Executing php on button press
- PHP function for horizontal Woocommerce thumbnails and badges
- Using Google Analytics in an enqueued JS file
- I can’t go to the page archive-{post_type}.php
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- separate list of programs in html/javascript coming from php
- How do I integrate vanilla Javascript to a wordpress website?
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- Drop down question
- How to use wp_ajax_set_post_thumbnail?
- WP Website is shown in HTML
- Passing a value from an input field to a php function in WordPress?
- How do I disable cache for a certain page?
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- I have a lot of JavaScript erorrs after SSL someone can help me?
- register dependency css and js inside a plugin class
- How to display post meta bellow every posts
- how to add functions to my function.php using a child theme?
- Show subcategory name selected in specific category woocoommerce
- Make a full-width wordpress page
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Bring Font Awesome icons inside menu A tags
- custom field – changing an element or background of id div – different versions not working
- How to include different html tags in the header for different pages?
- user update profile for custom code
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Font-Family does not looks like how it should be [closed]
- I need help implement a Javascript code into the PHP file
- Show contact 7 form in popup
- WordPress – Image href for home menu nav not working
- How Can I Center the Logo in the Navigation Menu? [closed]
- featured post as div background
- Cant get theme to change footer color through theme customizer
- How to customize posts in WordPress by using HTML and CSS?
- How to create and add js and css file when server is not on my PC?
- WP_Query not returning results
- Header location [closed]
- How do I link the side images?
- Parse error: syntax error, unexpected ‘}’ in
- Is there a better way to output HTML as a shortcode?
- How to create a container in php then customise it in CSS
- Custom HTML/CSS Theme into WordPress – SEO considerations
- Load wp_editor on button click
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Slick slider not working on wordpress
- How to create different templates for woocommerce single-product.php?