Which template name to use for taxonomies but not their terms?
I can’t figure out which template name to use to modify custom taxonomy archive page, but not the one for terms in that taxonomy.
I can’t figure out which template name to use to modify custom taxonomy archive page, but not the one for terms in that taxonomy.
I’m building a landing page and want to remove the navigation menu from the page. The navigation menu is in header.php which is of course in the page template. Is there a WordPress function I can use to remove the navigation menu from this specific page? I know I could do it with jQuery and do display:none for the nav menu but i’d like to do it server side before the page loads.
I’ve worked with WP/html/css casually for a long while but never dug deep before, I have a few questions about good practices.
I want to display the direct category ancestor of a given post. An illustrative example:
I’m wondering if there is any way to use get_template_part() with folders? My main folder has a lot of files now because I put every re-usable element in a separate file. I’d like to put them in folders then.
I see the following code a lot in index.php files. I understand that is_front_page() returns true when viewing the Site Front Page (whether displaying the blog posts index or a static page), while is_home() returns true when viewing the Blog Posts Index (whether displayed on the front page or on a static page). I am still somewhat stumped about the use of the following code –
How do I hide the page editor (WYSIWYG editor) if the current page is set to a certain template.
I want to know if it’s possible to get the ID of a page with a specific template. Is this possible to get the ID of a page that assigned to “page-special.php”?
I’m using bainternet’s method for searching custom post_types and it works great. However, I’ve recently been requested to return more than one “specific” post type and perhaps individual pages for a support section on our site.
It seems like stupid question. But, I can’t figure it out :(.