WordPress.org

Ready to get started?Download WordPress

Forums

Annotum Base
[resolved] WordPressUsers & Annotum (4 posts)

  1. jlewis004
    Member
    Posted 1 year ago #

    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 Articles 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. annotum
    Member
    Theme Author

    Posted 1 year ago #

    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?

  3. jlewis004
    Member
    Posted 1 year ago #

    I haven't changed the default 'permalinks' settings . . . but after changing them, everything is much improved. No longer getting the blank author page. I really, really appreciate the quick help. The journal launches soon - I'll hit you up on Twitter if you want to list it in the active Annotum journal sites.

    Thanks again!!!!

    justin

  4. annotum
    Member
    Theme Author

    Posted 1 year ago #

    Looks like that fixed it.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic