which is che correct $ ?
-
I have a custom plugin to to display some author’ info in the posts, in this plugin I did a duplicate of a function in order to display some more content, different from the author description, so I tryed with
// Get author's biographical information or description $user_description = get_the_author_meta( 'user_description', $post->post_author ); // Get agency period of rentals $periodo_affitti = get_the_author_meta( 'periodo_affitti', $post->post_author );
$periodo_affitti is clearly wrong, but I cant use $user_description because if I do the second content overwrites the first one
Here is the custom extra field tied to the second function:
th><label for="periodo_affitti">Periodo affitti</label></th> <td> <textarea id="periodo_affitti" name="periodo_affitti"rows="5" cols="30" class="regular-text" ><?php echo esc_attr( get_the_author_meta( 'periodo_affitti', $user->ID ) ); ?></textarea><br /> <span class="periodo_affitti">periodo affitti</span>
So which $…?
Another problem is that I’d like to print those 2 infos in 2 different positions of the posts, how can I manage the position/priority of each post content?
The page I need help with: [log in to see the link]
- The topic ‘which is che correct $ ?’ is closed to new replies.