Forum Replies Created
-
AuthorPosts
-
Ok, I am with some of that but not all of it.
I have:
1) duplicated loop-index.php and renamed it to loop-report.php
2) amended the code in blog.php on line 279 to read :if(!is_page( 'report' )) { get_template_part( 'includes/loop', 'report' ); } else { get_template_part( 'includes/loop', 'index' ); }
Here is the bit I dont get…. I do not have a page id to add here. I am only having trouble when looking at the post itself (single.php ?) of the cpt named report. If I understand the code you suggested correctly, I am asking if is NOT page ‘report’, get the me the index loop. if it is, get me the report loop. But, there is no page ID for a single post I can use as I would like this to take effect for all future posts into any category inside the cpt reports.
Please have a look at the dev site for clarification:
http://dev.lolhatespeech.com/offender-registry/ – bread crumb reads ‘Offender Register’ (page with avia blog post layout – Says what I want)
http://localhost/report-cat/racism/ – bread crumb reads ‘Archive for: Racism’ (Archive view for category of Reports CPT – say what I want)
http://localhost/report/racist-3-2/ – bread crumb reads ‘Blog’ (Single Post – does NOT say what I want)Thanks for any further suggestions/clarification, I am probably being stupid and missing something simple.
Found the solution for the 404 (it was a naughty plugin)
I still need a hand changing template for the cpt so it is different to the blog.
Thanks
Hi Devin,
Thanks for the reply. I have pushed to the server and it seem ok up there. Still can’t get it to work on my localhost though. (mamp)? I have deleted and recreated the .htaccess file. Any other Ideas?
Now, the top left of the bread crumbs says ‘Blog’. The right hand side says “You are here:Home / Reports / Racist 3”
How can I specify a template for the CPT so that posts from the Reports category (reached via the blog content item in the Avia layout builder). ?
Thanks, VIncent
This reply has been marked as private.This reply has been marked as private. -
AuthorPosts