shortcode output always appearing at top of page content
-
Just like srshakya over here, my shortcode output won’t appear where I put it, but rather at the top of the content (top of the post/page content).
Here is the page: https://img29.imageshack.us/img29/7155/bloguserspage.jpg
Here it is in the editor: https://img32.imageshack.us/img32/2594/bloguserspageediting.jpg
And here is the relevant code from functions.php:
function abm_blog_users() { $blogusers = get_users_of_blog(); //gets registered users if ($blogusers) { foreach ($blogusers as $bloguser) { $user = get_userdata($bloguser->user_id); //gets the actual data about each user echo "<a href=\"".$user->user_url."\">".$user->display_name."</a> (<a href=\""; bloginfo('url'); echo "/author/".$user->user_nicename."\">"; echo "#userposts</a>)<br />"; } } } add_shortcode('blogusers', 'abm_blog_users');
Desperately hope you have some insight. And for those wondering about
#userposts
, the function isn’t done yet. =)
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘shortcode output always appearing at top of page content’ is closed to new replies.