Help with creating short code
-
Hi,
I’m trying to create short code to use in the wordpress admin content editors. Not sure if I’m using the correct row in the db, and I can’t find anything in your documentation showing where the data is inserted in wpdb.
So far I have this, but it’s not working:
$results = $wpdb->get_row($sql,ARRAY_A); $surfschool_name = $results['display_name']; $surfschool_email = $results['user_email']; $surfschool_logo = $results['author_image'];
Then I’m using an array like this:
array( 'surfschool' => $surfschool_name, 'surfschoolemail' => $surfschool_email, 'surfschoollogo' => $surfschool_logo )
Both
[surf school]
and[surfschoolemail]
work perfectly as short code but[surfschoollogo]
does not.Have you got any suggestions?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help with creating short code’ is closed to new replies.