meta shortcodes problem in page template
-
I’m sure this is a really silly question but why does this code not do what I expect. The if statement is never true even though the echo shows both $me and $name can be “admin”.
$mypod = pods('user'); $me=do_shortcode('[userinfo field="user_login"]'); $mypod->find('name ASC'); while ( $mypod->fetch() ) { $name= $mypod->field('name'); if($name == $me) { echo "This is an echo statement in loop/$me/$name/<br>";} echo "This is an echo statement after loop /$me/$name/<br>"; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘meta shortcodes problem in page template’ is closed to new replies.