WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Users
WordPress Users & Annotum (2 posts)

  1. jlewis004
    Member
    Posted 1 year ago #

    Hello all,

    Sorry for the duplicate post. 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 - http://wordpress.org/extend/plugins/wordpress-users/
    Theme: Annotum - http://wordpress.org/extend/themes/annotum-base
    Version: 3.5.1

    Thanks again!

    justin

  2. jlewis004
    Member
    Posted 1 year ago #

    Here's the answer from the developer. The need for the WordPress Users plugin is non-existent when using Annotum IF you change the default permalink settings. Thanks for the great support from Annotum:

    I can't speak to the plugin, but Annotum definitely generates a list of articles by author via /author/authorname -- for example, see:

    http://demo.annotum.org/author/annotum2go/

    The example shows both posts and articles (albeit with somewhat inconsistent styling) for the selected author.

    What happens when you click on an author's name within an article?

    Have you changed the default 'permalinks' settings?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic