Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Within the context of WordPress Theme-ing, the term 'template' refers to PHP files used to display content.
0
votes
1
answer
334
views
Need a conditional to test if title of parent page matches title of child page
In my main loop, I need to incorporate proper html markup into a conditional to test if title of parent page matches title of child page and do (or do not) display certain content. Default might be t …
0
votes
Need a conditional to test if title of parent page matches title of child page
solution here as function:
function testchildren () {
global $post;
$childtest = get_pages('child_of='.$post->ID);
if( count( $childtest ) != 0 ) {
return false;
} el …