This is how i would do it:
why not just include another loop.php in its place, for example copy loop.category.php
, rename it to something like loop-copy.php
make your changes to it and call it to the template as <?php get_template_part( 'loop', 'copy' ); ?>
.
Related Posts:
- get_categories for custom post type with a specific custom taxonomy attached
- Show the parent taxonomy by creating shortcode in woocommerce?
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- How to get category and archive title?
- Get rid of WordPress category, tag and author archives?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Category archive by year with permalink support /category/YYYY
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- Control term order on a per-post basis
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- 404 Error On Category and Tags Pages
- Force WordPress to Show Pages Instead of Category
- Can a Child Category Have More than One Parent?
- Combine two taxonomies in a hierarchical tree
- Decreasing the Memory Consumption of a WordPress Site?
- What’s the URL for a category archive?
- Weird behaviour when adding terms/term_taxonomies programmatically
- How can I select a primary category?
- wp_update_nav_menu_item() to insert categories
- Sort posts by tags in category pages
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to get the category of the post and link it to the archive (of the category)
- How to make custom taxonomy check boxes like ‘Categories’
- How to hide a specific category posts in my monthly archive?
- Optimal way to redirect home page to category archive?
- Create terms when registering taxonomy?
- Display posts links from a category group by year
- Display list of Sub-Categories and the posts they contain, within one main Category
- How to create non-unique sub-category slugs?
- How to get next previous category in same taxonomy?
- Sort category page with custom field
- Display only deepest category on a single post?
- How to create tabled index of posts in a certain category
- How would you create a “weekly” archive?
- Sticky Posts Not Sticking to Top of Category Archive
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Root level category, tag, author and archive pages to work
- How to Override default update_count_callback for category
- Wrap a chosen category name with div
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Category Specific Archive
- How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
- wp_list_categories, Add class to all list items with children
- Getting WordPress custom taxonomy/category?
- Are Custom Taxonomy Templates Possible?
- “Sticky” posts for each category (archive.php)
- Display empty taxonomy terms with get_terms()
- I want exclude the particular category in sidebar
- Return category slug / title from category ID
- Connecting WordPress gallery to custom categories (taxonomy)
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- How to filter archives both by category and tag?
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- How to get the number of child categories a specific parent category has?
- Display only posts from referred category on date archive page
- Using widget logic I want to show only a widget on the archive page if there are no posts
- Get term by slug in Gutenberg
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- How to query posts from specific authors and categories using WP_query?
- How to get the depth of a category’s subcategories
- Category page only displaying the posts from a custom type
- New categories are now going to 404s
- How can I convert some categories to a custom taxonomy?
- Any way to assign Post Categories and Tags to Links?
- Creating archive pages for children categories
- Add custom taxonomy under the category title
- Display name of the last child category
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- Display “add to cart” button on every listing in product category page?
- Get multidimensional array that reflects category hierarchy
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles
- WordPress categories being called “archives” in google links. How to remove?
- How to export/import categories and keep their IDs?
- How to use wp_category_checklist()?
- List Terms in Category
- How to get category URL with the slug?
- Get all sub-categories of a parent category
- conditional for sub category on archive page
- Can I use get_adjacent_post for specific categories?
- Sorting posts by season
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- weekly archive for custom category
- WP_Query() returns null when results exist!
- Taxonomy filter all children
- WordPress subcategories return 404 in custom template
- Display Slug instead of Name
- Force a user’s posts category
- How to remove category titles?
- Search Posts / Pages with multiple options?
- Show archives by year from just one category
- Change existing taxonomy settings when using custom taxonomy