Try this for the loop code.
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$loop = new WP_Query( array(
'post_type' => 'music',
'paged' => $paged
) );
?>
Related Posts:
- Where is get_header(‘shop’) file in Woocommerce templates
- How did you incorporate WooCommerce in your own WordPress theme?
- Creating a custom category page with pagination
- How to remove wp_link_pages() from template
- Show all parts in multipage post
- Unable to display pagination links on custom category template
- Get URL of current post but not the page number
- How is WooCommerce cart.php template supposed to be used?
- Pagination issue with tag.php
- /wp-admin/post.php shows 404 template on submit
- Can index.php take over for front-page.php in template hierarchy on second page?
- template with multiple post loops for multiple widgets [duplicate]
- Add pagination to blog
- changes to templates not showing on server
- Custom template pagination
- How do I get the size of an attachment file?
- Pass PHP variable to javascript
- How to get slug of current category in taxonomy template?
- Using WordPress templating for HTML emails
- Displaying a WooCommerce product via PHP
- I put my blog on a subpage, how do I get page title?
- What does a security risk in a plugin look like?
- Restrict a search to a custom post type
- Test if page is child and has children, if so echo child pages also on grandchild pages
- Correct process for a new Page Template?
- Templates & CSS – Proper Programming Practice?
- A shared custom taxonomy between two custom post types
- Custom Page Template for “Older Posts” Pages
- New Template — copy existing template and change code? [duplicate]
- Same template for all the terms of a taxonomy
- Template plugin for blog posts? [closed]
- Create a WordPress template without navigation and footer
- Template redirect is_tax() not working
- Hide Front-End Admin Bar Including 32 px Spacing
- Show template loaded
- How do I make a wordpress plugin with menu item etc
- How to format shortcode’s HTML in external file
- taxonomy_template filter do not loads custom taxonomy template properly
- Turning on the 404 page on localhost
- Checking for page templates in child theme
- WordPress redirect all 404 pages to the Homepage
- Is there an action hook that fires just before a template is loaded?
- How can I serve a text file at a custom URL
- What’s the equivalent of front-page.php for a custom static page?
- Stylesheet comment header: Which header names are mandatory? [duplicate]
- How to add posts list to a page template?
- Valid HTML in Template Part
- Why do I get the same excerpt for all items in my RSS feed?
- Dropdown menu on custom page with product to choose number of products per page
- What is this code trying to do? It was the cause of my 20s TTFB
- Problem when linking out to separate file within foreach loop
- Conditional tags or Multiple files
- WP Post Template – Templates in own folder
- Getting term description in single post template
- Cannot edit style.css from admin panel, because the template is looking for style.min.css
- Can I add a default Block to my custom theme?
- Remove post templates from the selection box menu when creating a single post
- Headers Content-Security-Policy CSP Major Issue
- Pagination Broken on Static Pages but Works on Blog Articles
- How to convert the WordPress meta box Page Attributes->Page Template dropdown to radio buttons?
- global variables in templates
- Real Time Page Template Preview in WP Admin [closed]
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- Best practice to update the file header.php
- page-{slug}.php vs. template-{slug}.php
- Understanding the Template hierarchy
- wp_enqueue_style and different styles for blog template
- Can I have both front-page.php and index.php?
- get_header(), get_footer() from plugin template
- If Posted After Date
- Default taxonomy template in plugin, override in theme
- how can I add a “read more” tag directly in the template?
- Update template without undoing all my edits?
- How to display specific child page template in wordpress
- The wordpress website is showing ‘w’ while it loads and in the footer
- Assign Specific Template for Custom Post slug
- Pagination shows Same posts
- Why won’t the action hook wp_head accept parameters?
- Wp-minify doesn’t seem to minify my JS code
- Enqueue css to a third-party plugin template
- Parent/Child themes – both CSS files loaded
- WordPress pagination broken for page 2,3 with custom permalink. Redirects to baseurl
- How to implement pagination in category.php template
- How to access Post Archive created by Elementor?
- Accessing download link from the loop with WP Download Manager Pro
- front-page.php includes a placeholder text field. How to get rid of it?
- Display a custom 404 page without a redirect
- WordPress arrows dissapeared strange signs
- Template and URL parameter problem
- How to add subdomain to htaccess
- Validating Error with submit button
- When to use content-pagename.php?
- Using external file with WP_USE_THEMES set to false causing 404
- Current URL path variable
- How to install a wordpress website template on an existing website?
- Wp Pagenavi how to display all results
- Why is my no-results.php template moving my sidebar and footer into the main container?
- Page.php vs Single.php
- WordPress show different custom post type
- Please Check this ‘.htaccess’ File