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
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- What does is_page_template() compare against?
- Creating custom blog page template the right way
- Custom Post Type Settings page, choose page to display archive
- How to get the custom post type from an archive page?
- Page Template as Custom Post Type Archive
- is_page_template not working
- When is get_template_part() preferable to simply using the template.php files?
- Add custom field to the archive page?
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- How to remove all styles for certain page template?
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- Password protected posts redirects
- Variable use in get_template_part
- Loading custom page template via plugin
- Overriding page template using page_template filter
- Change title in head on Archive page
- Simplest way to add a second html editor to the post/page admin?
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to consolidate multiple static page templates into one dynamic one?
- Page is defaulting to archive page and not designated template
- Loading page content into a variable in template
- Change number of posts to show on Archive page (custom post type)
- Capturing arbitrary semantic URL arguments
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- How do I display the text inside the WP editor for a page with a custom template?
- Dynamically assign same page template to child page as parent
- What content should go in index.php?
- Assign Page Template Within A Custom Post Type
- Store Page Template Files in a Subfolder
- How to show a post single post in page template
- How to pass a numeric id to a page template?
- How can I dynamically load another page template to provide an alternate layout of the posts?
- Output yearly archive within a page
- paginate function in archive for custom-post-type
- Create a new template for twentytwelve
- Post formats template
- Custom Post Type – Archive page title
- get url page template
- Posts archive index pagination in a static page custom query
- Video Background – (php & css) – generating 404 error on page load – WordPress Theme File Structure Help
- 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
- How to make a custom Archive Page
- How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
- is_page_template & is_page in functions.php not working
- Removing or Restricting Access to Page Templates for Editor Role
- Created custom post type but selected template not staying selected
- Why is POST’ing to my WP page template producing a 404?
- “Sticky” posts for each category (archive.php)
- get page title, url and excerpt of a page
- Can I create a page template, use it once, then hide/remove the option to use it again?
- Are page/post IDs unique across a whole network?
- How to create archive page for taxonomy terms within custom post type
- Custom template for each page
- Theme’s page.php and index.php template files are confusing me
- Grabbing the page template name?
- How to make an archive page displaying posts in a date range
- How can I have a static title on my blog page?
- Adding the Admin Bar to a page with a custom template
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Use is_category(), is_tag(), … in functions.php
- wp_title() handling of author page
- Can you call a template file without assigning template to a page in the admin panel?
- page-slug goes to not found
- Display only posts from referred category on date archive page
- Why am I getting syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in this template? [closed]
- How do I add a body class to specific pages?
- Custom template for archive of a custom taxonomy
- How to edit 404 content via wp editor?
- How to list all titles of posts on a specific page?
- How to handle a missing page.php?
- Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?
- Custom-post-type-archive: posts sorted/filtered by year?
- Programatically switch page template?
- How to list custom post types?
- Custom query in archive.php with pagination nightmare
- Custom post type archive page pagination
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- wp_redirect() does not work in custom template file
- Remove all theme CSS & JS from wp_head (but only for 1 page template)
- Get page id of current page from template [duplicate]