March 1, 2014 at 1:18 pm #2634
Best theme and support ever!
Now, I’m working on a website and I’ve created some categories and tags. When I click the link (either on the website or “view” in category page in the back-end) – it takes me to 404 page (“no results”).
THERE ARE pages associated with these categories.
Also, I’m trying to edit these category, tag and “author” templates – but I couldn’t find them in the theme files.
Maybe I should change their taxonomy to work properly?
I’m using a child-theme.
March 3, 2014 at 9:10 am #2641
- This topic was modified 2 years, 7 months ago by satori.
The category, tag, date, and author archive code is located right inside the theme’s “index.php” file – however, without an admin level access I am not able to troubleshoot it on your instance of the theme. Could you please upgrade the user you’ve provided to an admin; please note that I’ve edited your post to remove the login details, just in case – in such situations it’s always safer to send an email to firstname.lastname@example.org ;)
Andrii / Satori StudioMarch 3, 2014 at 1:05 pm #2647
Thanks for replying (and editing my message:)
I upgraded the user to admin, so now you can log in and change whatever needed. As told, I just need to have the ability to customize the author, tag and category templates. If you can even just guide me to what file/lines to look at, and I’ll continue with the php work.
You can see here’s an example to “project” that uses all three taxonomies (portfolio-tag, tag, category). I want their links (category- on the left side. tag- at the bottom of the post) to link to the appropriate templates.
By the way, I’ve update also some code in the parent theme (Ikebana original folder’s functions.php). Just so you know.
OrenMarch 4, 2014 at 1:25 pm #2657
the archive templates, apart from the portfolio tags, are located in the theme’s index.php file:
– the category archive template is lines 46-54
– the date archive template is lines 5-18
– the tag archive template is lines 34-43
The current taxonomies do not work because of the extra code you’ve added on lines 404-425 of the “functions.php” file inside the parent theme: they are not needed since the relevant declarations already exist; and I recommend to delete them, otherwise the native WP taxonomies get broken. E.g. if you remove the piece of code that declares the category taxonomy, the category links on the project you’ve linked to earlier start working ;)
Andrii / Satori StudioMarch 6, 2014 at 7:51 am #2679
Thanks a lot!
So far all good, but there’s one thing:
I want the Category, Tag and Author templates refer to the PROJECTS, not to the native wordpress posts.
As you can see, I used the “content-aside” format as the “post” format (because I want them to appear in the portfolio, so they have to be “project” post-type, right?).
My final goal is to show in the category template the list of the related projects (which are, as I said, only content-aside format projects).
Right now, the category template is looking for POSTS, and not for PROJECTS… so this is the only change I want to do… (add these taxonomies to the project post-type).
Hope I’ve been clear enough (:
OrenMarch 6, 2014 at 9:01 am #2680
I think I got it!
I’ve added to functions.php (line 383):
‘taxonomies’ => array(‘category’,’post_tag’,’tagportfolio’)
so the “project” post-type will recognize the “category” and “tag” taxonomies.
Than I added before the loop in category.php (yes, I use one:) this:
query_posts( array(‘post_type’ => ‘project’) );
so it will call these post types.
And that’s it!
So far I worked only on the category.php, and now I’ll create the tag.php and author.php as well.
If I’ll have any Issues, I’ll post again (:
THANKS A LOT, ANDRII!
OrenMarch 6, 2014 at 9:29 am #2683
glad to hear that the taxonomy issue has been resolved! Should you have additional questions, do not hesitate to contact me.
Andrii / Satori Studio
You must be logged in to reply to this topic.