I don’t think you need to use the hook pre_get_posts
on this. Remove that part from functions.php
. Then just put the archive-technology.php
in themes root directory. Then go to you Permalinks settings page and hit Save Changes button. WordPress will need to regenerate the .htaccess
file to use new archive template.
Related Posts:
- How To Create A Paginated List Of All Categories On My Site?
- WordPress custom post type archive with description
- CPT: archive-cpt.php VS custom page template
- Editable content on a Custom Archive page
- Creating a custom archive template that sorts post by date
- Custom post type archive page blank
- How to integrate single and archive templates for custom post type in any WordPress theme
- How to get the Custom Post Type Archive inside a folder
- Is possible register two archive pages for single custom post type?
- Custom post archive page not opening 404 page
- Change Title Based on Taxonomy Filter in archive-{cpt}.php
- How to display archive by selecting year and then selecting month
- Show index and not the archive for “Dog Custom Post” with default slug
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Creating custom blog page template the right way
- Add custom field to the archive page?
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Loading custom page template via plugin
- How to consolidate multiple static page templates into one dynamic one?
- Capturing arbitrary semantic URL arguments
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Output yearly archive within a page
- Custom post type archive sorted and grouped by date in post meta field
- How to remove a parent theme template from Quick Edit?
- How to Set a Custom Template for Blog Posts
- Custom template for each page
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- page-slug goes to not found
- Display only posts from referred category on date archive page
- How do I add a body class to specific pages?
- Custom template for archive of a custom taxonomy
- How to list all titles of posts on a specific page?
- Custom post type archive page pagination
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- Get page id of current page from template [duplicate]
- is_page_template returning false
- get_pages — parent vs child_of?
- Not able to see CPT archive template
- Create a page template with No Footer
- One of my pages uses the archive.php template only. Why?
- Custom archives function
- Duplicated posts on category page
- How to display custom post in archive section of the wordpress page?
- Custom Taxonomy index/archive hierarchy
- Add #sidebar-2 to a custom page template
- wp_redirect goes to infinity loop
- What content to use for inserting images
- Display one post in different formats conditionally
- next_posts_link and previous_posts_link problem
- get_avatar() as backround image
- get_the_excerpt() inside WP_Query – link URL Incorrect
- Change text size and color for tags and category meta description on product page
- Strip from the_tags() output
- How can I create a new menu item that links to an archive of a custom post type?
- add_rewrite_rule no longer working – possible https issue?
- Contact template doesnt appear in page template options
- Custom page template to sidebar/widget
- How to set custom cookies in WordPress after a form is filled on a page
- Custom archive pages without “the loop”
- Proper way to create custom static page
- How to have multiple archive pages?
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- WordPress sitemap with Custom Post Types
- RSS feed for a custom page template
- How can I combine WordPress default Tags and bbPress tags into one archive page?
- Blog template with different header to rest of site
- Overriding the template files using a plugin for all themes
- How to integrate custom HTML template in a premium wordpress theme?
- Pagination not working past page 3 on archive page of category
- Static page won’t identify template
- My archives page won’t sort posts by month
- How do I apply a wordpress function to something with no ID inside an archive page?
- page_template filter without a plugin
- In Product Category archives how to show Posts having same/similar prod_cat slug structure?
- Custom taxonomy return 404
- Want to display my custom date archive to date.php but dont know how
- Custom post type archive page not showing on archive-posttype.php
- Custom Post Type Archive – archive.php is present, but it is not being used
- Display custom post type archive on page.php template
- index.php Not Showing Custom Posts / Terms
- Templates list in “Page Attributes” metabox is inaccurate
- Stop Custom post type from being searched via URL
- How to set title from page-template?
- create template for one page
- How do you create a default template?
- Cannot display default template after switching to custom
- Custom Page Template not working when site moved from subfolder
- change the Theme dynamically
- WordPress & External Page: 404 error in IE and some others
- Lead Generation with Cookies in WordPress
- Show tarifs page with menu a or b depending on menu of origin
- How can I make different page templates for one category?
- Pagination not working for archive
- Display child page on parent
- Show page name in browser
- WordPress 3.6 – archive.php doesn’t get triggered [closed]
- Pagination not working only on Archive-Name.php using new WP_Query
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren
- How do I update the SEO information on dynamic pages being generated from template_include?