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?
- How to get category and archive title?
- Get rid of WordPress category, tag and author archives?
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- Could not insert term into the database
- What’s the URL for a category archive?
- Weird behaviour when adding terms/term_taxonomies programmatically
- wp_update_nav_menu_item() to insert categories
- Sort posts by tags in category pages
- How to get next previous category in same taxonomy?
- How would you create a “weekly” archive?
- Root level category, tag, author and archive pages to work
- Wrap a chosen category name with div
- Are Custom Taxonomy Templates Possible?
- I want exclude the particular category in sidebar
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- 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
- 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?
- Creating archive pages for children categories
- Add custom taxonomy under the category title
- Display name of the last child category
- WordPress categories being called “archives” in google links. How to remove?
- List Terms in Category
- How to get category URL with the slug?
- conditional for sub category on archive page
- Sorting posts by season
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- weekly archive for custom category
- Display Slug instead of Name
- How to remove category titles?
- Show Available Taxonomy List with Current Category
- Exclude a category from the_category in the single post page
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- How can I define a custom archive for childs of a specific category?
- Filtering multiple categories via the URL
- Get parrent category name
- Display specific categories by ID
- add_rewrite_endpoint returns 404 on archives
- Multiple category archive page
- Drop posts from categories in MySql
- Get posts under a category with SQL
- Custom taxonomy template for categories
- Wacky taxonomy in wordpress
- Question on using custom structures for categories
- Category archive is displaying all posts rather than the specific category
- How to Remove a Title from All Category and Tags Page?
- Display sibling categories on category page
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- List just subcategory and products of active category page in Woocommerce
- why get_the_post_thumbnail( the_ID()) echos extra post id
- WP 4.7 in_category change?
- display category list year wise in wordpress
- Illegal string offset ‘taxonomy’ in
- Let user select their own category
- Show Secondary Sidebar on Category pages (archive)
- Setting selected term_id with wp_dropdown_categories?
- creating categories programmatically
- sidebar troubles, taxonomy trouble
- Category post count is not correct
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- List of post categories only associated to another custom taxonomy
- How can i change sort category view starting from child then parent, not alphabetically
- Bulk assign posts to a category using SQL (MySQL)
- Display all posts from specific category
- Meta Box: display single image on an archive-template
- outputting taxonomy hierarchy
- Make category archives page in menu non-clickable
- Confused about category.php template – not working
- Custom Category Archive Pages
- Filter custom taxonomy posts via AJAX
- Why use hierarchical taxonomies instead of many custom taxonomies?
- How get all media from a posts category by db?
- How to get get_categories()’s ‘hide_empty’ argument to work with global year var in the archive template?
- How to Manage and link certain custom taxonomy?
- How to display total views of all posts of one category?
- Display Taxonomies in loop with template args
- Create monthly archive for parent category
- Grouping parent categories into sections
- Match two taxonomies to display a specific content
- How to count the number of monthly archive?
- Transfering static site to wordpress and retaining category by month paginations
- Conditional statements based on custom meta value in category archives
- Display only the latest post
- Return selected categories only in custom page meta box?
- get IDs from links categories
- Multiple Parent Category URLs
- Chained drop-down menu for custom taxonomy using chained.js
- Display only one level subcategory in wordpress
- Converting Categories (with ACF fields) to custom taxonomies
- Taxonomy term RestApi data 10 rows limitions
- Images as Categories
- hide_empty property not working when using get_terms
- Quick Edit on taxonomy names results in error