alfakappa
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: check if it is a subpage of a subpage?auch… no sorry… it’s a CPT…. really sorry…
Forum: Fixing WordPress
In reply to: check if it is a subpage of a subpage?ok, tried this one; only it is not a page, it’s a CPT 😉 sorry that i forgot to mention that…
should i us is_post instead of is_page?
Forum: Fixing WordPress
In reply to: check if it is a subpage of a subpage?In that case I would have to list al the second level pages which are appr. >50 pages.
Also, if there will be added an extra page, it won’t automatically take the right template part. So is there a way to change ‘Diagnosis’ to a more dynamic part such as ‘child of diagnosis, child of woman & Child or child of dermatology’
(there are 4 top level pages, each of them with about 10 subpages and every subpages with appr another 15 subpages)
Forum: Fixing WordPress
In reply to: check if it is a subpage of a subpage?Got that one as well esmi, but it is not testing for sub of sub – or.. at least I cannot see how…
Forum: Fixing WordPress
In reply to: check if it is a subpage of a subpage?Thanks… I can see how that relates, but I still cannot figure out the code to use…
I need someting like this:
<?php if {is subpage of subpage} [show all kind of content fields]}
else { show only title and content }
;?>
Any kick start on that?