Question

Here's my code:

        $args = array(
            'child_of' => $CurrentPage
            );
        $children = get_pages( $args );
        foreach ($children as $child) {
            foreach ($child as $key => $value) {
            echo $key['post_title'];
            }
        };

And output:

IpppppppcppptpppppgmppcfIpppppppcppptpppppgmppcf

The output appears to be the first character of the $key, repeated over both children.

ID , post_author , post_date , post_date_gmt , post_content , post_title , etc.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top