0
votes
2answers
97 views

Custom Post Type with Nested Taxonomy and Template Files

I have a custom Post Type of "Portfolio" with a rewrite slug of portfolio. So the URL on the frontend is: domain.com/portfolio. I have a custom Taxonomy of "Categories" with a rewrite slug of ...
3
votes
1answer
185 views

Templates for Custom Post Types and Custom Taxonomies

I am working on a custom theme for a network of sites that are deployed under a WordPress MultiSite installation. Within these theme I create 4 custom post types that have two taxonomies added to all ...
0
votes
0answers
44 views

Perform internal redirect in WordPress?

Let say I have an existing page named "bar", e.g. http://www.example.com/bar I want to write a plugin, which when called, will load the content exactly same as bar (not just post_content, but the ...
0
votes
1answer
48 views

Setting a homepage - doesn't seem to work

have a page (home) that runs a template page-home.php that I can access at mydomin.com/home. I am wanting to have this as my static homepage page, so accessible at mydomain.com/ however I cannot seem ...
0
votes
1answer
106 views

Changing permalink name redirects to another template?

I'm creating a template with a few templates with names page-contact.php, page-portfolio.php and page-blog.php. The problem is that when I select a Defaul Template for a page (I expect it to open ...
0
votes
0answers
37 views

Select page/template from the permalink url

I use permalinks like example.com/projects/project1 for my project pages. They use all the same template. I want to access another template with more details on the project by adding /details to the ...
1
vote
3answers
433 views

Flush Rewrite Rules when new site is created on network

I am working with a multisite setup and I have created some custom post types, which seem to work fine except when trying to view any of the post types pages on the front end, I get a white screen. ...
0
votes
1answer
62 views

Storing postID in session variable to query database when visitor on custom template page

I have an application with 3 custom post types, A, B, and C. The post types B and C are related to A using acf relationship fields. I've designed a single template for A post types. When viewing this ...
0
votes
3answers
372 views

make permalink go to a custom single.php file

hope somebody can help me with this because I am struggling for a while. I want to use two single.php on my website, one to display the regular posts and another to display some products that I will ...
0
votes
2answers
141 views

Template files for Custom Post Type and Taxonomy

I've got a custom post type called "properties" and two custom taxonomies called "type" (office space, retail space, etc.) and "location" (new york, chicago, etc.). I have created ...
1
vote
2answers
88 views

Avoid Wordpress categorizing a permalink request as Not found 404 Page

I've been looking all over the web for something like what I need and I haven't find anything resemble not even similar, the thing is this: I got a Page Template to a simple page post type, let's say ...
0
votes
1answer
30 views

Permalink / sub-template issue

I've got a WP page with many subpages with their own template. The main template includes them. Each element with its own template can be received with an id and an anchor that is linked to this idea, ...
0
votes
2answers
71 views

Link to blog index from template

I can't believe I did not find the right function for this: I just want to retrieve the blog index url from a template. My homepage is a static page. I am not looking for bloginfo('url') because it ...
0
votes
2answers
38 views

implement separate templates for 1 post type

I have a custom post type 'courses', with a course description as post_content, and number of attachments I also have a custom post type 'course units', linked to the courses with a custom field ...
0
votes
1answer
30 views

Text in permalink

I've this kind of permalink for post type : /widgets/%category%/%postname%/ And the problem is that when going to /widgets url (http://mysite.com/widgets) a not found page error (404) is displayed. ...
0
votes
1answer
79 views

get_permalink returning first letter

I'm trying to use an ajax function in my custom template to retrieve a post's custom fields to show a post overview. Getting the custom fields is working, but the getting the permalink isn't. I'm ...
0
votes
1answer
274 views

wp_get_attachment_url not working

I have a template file which shows the posts of a category called downloads. for each posts i have attached a pdf file. I have given a link to download the pdf file on the page. But when i click the ...
0
votes
2answers
1k views

How to Create Template File for Parent Page of Custom Post Type

After creating a custom post type I made a custom template file for the post (single-customposttypename.php). So the URL structure would be: example.com/page/postname, and postname would be the post ...
0
votes
1answer
79 views

Choose template depending on URL

I have the following basic page setup: xxx.net/ -> static homepage xxx.net/blog/ -> blog page with loop showing all posts xxx.net/gallery/ -> gallery page with loop only showing posts that are ...
1
vote
0answers
105 views

WordPress Not Using Template Files After Permalink Update

I have a really weird issue that just occurred on a client site. I updated the permalink structure from /%category%/%postname%/ to /%postname%/ and suddenly my pages don't respect templates and are ...
2
votes
1answer
93 views

How to get full content including template HTML

I'm looking to get the page content between the header and footer (as Wordpress already does) that includes the template HTML (as this is going to be an AJAX request). Is there a function that will ...
1
vote
4answers
3k views

Wordpress not respecting template hierarchy (fetches index.php instead of single.php or page.php)

I've encountered a strange error while developing a custom theme. After finishing editing the template for a custom post type single view, I passed onto working at the template files for pages and I ...
1
vote
2answers
387 views

Clean URL permalink for custom post type

I have a custom content type of photo_group which is a collection of photos. I want to be able to go to mysite.com/photos and have that page dump out all of my photo groups. How can I do this ...
3
votes
1answer
865 views

How can I set up a category “overview” page?

I know I can use the Template Hierarchy to set up custom theme pages for terms inside a category, like these: mysite.com/category/tech/ // category-tech.php mysite.com/category/blog/ ...
1
vote
1answer
348 views

Is it possible to list post attachments in a sub URL endpoint with a dedicated template?

Wordpress provides templates for displaying media attached to a post or page (attachment.php and more). They're also displayed with nice permalinks, such as: ...
0
votes
1answer
370 views

One Custom Post Type two different Templates

I have a custom post type with some metaboxes, for this CPT have his own single-CPT.php where I show his content and metaboxes and url domain.com/CPT. But what I need to know is if posible to create a ...
0
votes
2answers
3k views

get_query_var() and permalinks

I have a permalink structure that looks like this, %category%/%postname% I have a category.php template coded up and and trying to pull of the post of a certain category, so for example my URL may ...
2
votes
1answer
61 views

Adjust which tempalte a page uses with a function?

I know if I had a page that had a permalink such as /stories/ then I could create a page in my template called page-stores.php and it would load in place of the default page.php when that page loaded ...
7
votes
3answers
1k views

Can't get a custom template taxonomy page to display

I've been trying to wade my way through learning the ins and outs of taxonomies and how to integrate them into themes and I've run into a pretty basic issue that I can't seem to figure out. I started ...
6
votes
1answer
3k views

Taxonomy, Terms, and Template Files

I have post type 'product' and hierarchical taxonomy 'types' attached to it. In this taxonomy, I have terms: 'dry-clean', 'washer', etc. With several sub terms on each terms. In my situation, I need ...
0
votes
2answers
168 views

Possible to make a subdirectory that loops through a single category?

I'm trying to separate the main part of my blog (the informational portion) from more commercial parts. WHen you load my homepage, I purposely exclude a category because I don't want my normal ...