I’ve never used is_page_template()
but I have had good luck with is_page('new_search')
regardless of which conditional you use some things to check.
Is the is_page_template('new-index.php')
working. you may test this by doing something like:
if ( is_page_template('new-index.php')) { wp_die('new search page');}
You should also use wp_register_style
and wp_enqueue_style
in your functions.php
hooking in the the wp_head
which you should have better luck with.
Related Posts:
- WordPress Custom Search by post_type
- Custom post type not pulling CSS
- Search custom post type result in same template page
- Multiple search forms and respective results page templates?
- Custom post type archive page template
- Custom Post Type with Templates using Meta Boxes?
- Search Custom Post Type & Taxonomies
- Posts are duplicating on wp_post_update
- Multiple meta_values in the pre_get_posts filter?
- How to order separated Custom Post Search results
- Customize my custom taxonomy table in Admin panel
- Custom-Posttype & Custom Taxonomy WP_Query
- Page template with different page and post content
- Custom page sidebar using Template dropdown box
- search also in taxonomy, tags and custom fields
- Custom post type search using $_SESSION and pre_get_posts
- How to stick custom post at the top in search results
- filter custom post type by meta key in dashboard
- Can I search only some of the fields of a custom post type?
- Custom Post Type And “fopen”
- Filter custom posts using auto populated dropdown selectors
- Make parts of your wordpress website completely built with data from external APIs?
- WordPress sort search results by custom order
- Including metaboxes from custom post types in global search — continued
- Custom post type not showing in search result
- redirect automatic page that serves custom posttype content
- Adding sidebar to template creates horizontal gap the size of the side bar
- WordPress showing archive.php instead page
- How to render a custom post type template with custom fields using shortcode
- What to and how to proceed with CPT to make DB small and efficient?
- How to Create Columns with WordPress and CPTUI display page ?
- Pretty URL for custom search for custom post type
- Add post location with mile radius allowing search
- Include custom post type content in search
- Get post count for search result based on post type
- Auto Complete Search
- search suggest – filter post type
- Searching Custom Post Types
- Show Custom Post Type meta boxes only on Page Edit
- Adding the_content() in custom template email
- Creating a Page Template to display all items from a Custom Post Type
- Filter widget outputs
- Why does my content disapear when I make a page to match an archive name?
- How do i search authors from search form using author’s name
- Remotely search WordPress sites using xml-rpc
- Custom Post Type Template Alternative
- General advice on addressing content-centric pages
- BBPress Search results in WordPress search
- Limit Search to Post Type With Apostrophe return search not found
- Search filter triggered & sort by custom post type
- Set Custom Post Type in Widget Settings for use in Widget
- Fields for different parts of a page
- next_/previous_post_link() `in_same_category` appears to fail when true
- Multiple templates for single custom post type
- Displaying and searching Custom Posts
- Search by tag name and category
- Searching Custom Fields
- Advanced search form with filters for custom taxonomies
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- filter search custom field query
- How do you create a custom template to display a category with an image and related posts below?
- Different results between permalink and query var search
- How to let users choose where to search for posts?
- Include custom taxonomy term in search
- Pages Become “Archive” Instead of Using Page Template
- How can I set the page template of a new custom post type post?
- What content types are shown at a search page?
- Can NOT search my custom post type?
- Custom post type pages return 404 page?
- Search one custom post type ONLY, disable “all posts”
- Multiple single templates?
- Custom post_type search pages
- Pagination Error : Duplicate argument being outputted
- Custom URL redirect in WP
- WordPress search and date filter not working with custom post type
- Custom Empty Results page for my Custom Post Type
- WordPress Picks Up Wrong Template for Custom Post Type Archive Page
- Associate page w/ specific single post template?
- Add custom CSS class to custom post type
- Include php on a specific page template
- get comments by current user inside page template
- Custom filter for main search: how to exclude specific post_type from search results
- page template for custom post type
- Page Template Dropdown For Custom Post Types
- Give each post type label a different color?
- Add custom attributes to a post
- Display an icon based on post type
- Displaying custom post types as a gallery
- how to get this tax_query working?
- Select2 AJAX and WP Query Returns ALL and does not filter
- Custom Taxonomy Search result page
- How to group search results by post type and only if post type result is not empty?
- How to integrate single and archive templates for custom post type in any WordPress theme
- find custom post type post by searching its custom field with my string
- search custom post type by custom fields on front end
- Prevent A Specific Custom Post Type Showing In WP Search Results Page
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- providing access to post_id or post inside functions.php
- wp_get_canonical_url showing first url of the post for custom page
- Custom page for editing custom post type on frontend based on url