68 reputation
110
bio website digisavvy.com
location Los Angeles
age
visits member for 2 years, 3 months
seen Oct 9 at 7:55

I help businesses get more targeted website traffic & sell more of their products & services online http://bit.ly/trVUq9 and I can't resist a Hendricks.


Sep
24
awarded  Autobiographer
Jul
2
awarded  Curious
Mar
20
asked get_adjacent_post() function no longer working
Nov
21
awarded  Notable Question
Nov
13
asked Optimizing Query used for a Shortcode
Sep
26
awarded  Tumbleweed
Sep
15
asked Hierarchical Page Listing of all Pages in a Multisite Network
Sep
15
answered Merge two custom post types into one admin page?
Mar
21
awarded  Popular Question
Feb
7
awarded  Teacher
Feb
6
awarded  Commentator
Feb
6
answered Custom post types problem
Jan
31
revised Return current page type
added 163 characters in body
Jan
31
answered Return current page type
Jan
31
comment Subpage Conditional
This code would only run on a page with a post named 'Billy' 'if (is_page('Billy')) { echo "do this"; }else{ echo "do this instead"; }'
Jan
30
comment Subpage Conditional
To make sure my understanding is correct. You want to "do something" on all children of a specific Parent Page. Right? If so then this should work if(is_page() && $ancestor == $pid) { "do this"; }else{ echo "do this instead"; } That should fire off if you're on a page and that page is an ancestor of $pid where it's the page id
Jan
30
answered Subpage Conditional
Jan
30
awarded  Supporter
Jan
30
awarded  Scholar
Jan
30
comment Using get_template_part to retrieve a template file based on current post type
This helped quite a lot. Thank you, Simon