[Plugin: WordPress Users] WordPressUsers Plugin & Annotum
-
Hello all,
I’m using the WordPressUsers plugin to generate a list of contributors to my academic journal website. At present, the plugin does a great job of listing the “posts” and “comments” created by each user; however, because this is an academic journal, I need it to also list the “articles” created by each contributor. I’m using the Annotum theme and articles are created (I think) as a custom post type. I’ve identified the portion of the code I need to change (I think) to make the loop spit out the data I need; however, I can’t seem to find the correct “name” to include. Here’s the code that needs changed:
if ($recent_posts) { $html .= "<h3>Recent Posts by $curauth->display_name</h3>\n"; $html .= "<ul>\n"; foreach( $recent_posts as $post ) { setup_postdata($post); $html .= "<li><a href=" . get_permalink($post->ID) . ">" . $post->post_title . "</a></li>"; } $html .= "</ul>\n"; }
For each of those sections that has $post, I think I need something else that points this bit of code to the custom post type of article that Annotum uses. Can anyone help? I’m still (obviously) in the process of learning .php and this is driving me crazy. ?? Any help would be much appreciated.
Plugin: WordPress Users – https://www.ads-software.com/extend/plugins/wordpress-users/
Theme: Annotum – https://www.ads-software.com/extend/themes/annotum-base
Version: 3.5.1Thanks again!
justin
- The topic ‘[Plugin: WordPress Users] WordPressUsers Plugin & Annotum’ is closed to new replies.