Make wordpress jump to first subpage, if subcategory blank
-
I’ve been looking for a conditional statement for this for some time today, no luck, not even mention in the Codex..
I am using a multi-level navigation on my page:
Category
— Subcategory 1
—- Subpage 1
—- Subpage 2
—- Subpage 3
— Subcategory 2
— Subcategory 3
..“Subcategory 1” is blank.
Is it possible, if user clicks “Subcategory 1”, WordPress jumps to first subpage (“Subpage 1”)? There is no need to display an empty buffer page IMO..
smth like: if subcategory=empty, jump to it’s subpage 1?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Make wordpress jump to first subpage, if subcategory blank’ is closed to new replies.