Archived

This topic is now archived and is closed to further replies.

  • 0

display author info on author page

Question

Posted · Report post

Hi,

I want the Author page to display the Authors photo, name, short bio at the top of the page... and their posts underneath.

If I drag the PostAuthor section to my Author page, the info displays. But the Biographical Information all runs together. I tried adding line breaks" <br />" but it does not work. I guess WordPress strips them out.

Next, I tried using the Profiles section and I like the layout/look better (I can add html and format the text however I like). I actually prefer this method. However I can't seem to figure out how to get the Authors profile (and only their profile) to display on their particular Author page.

 

Any advice for using each/either of the methods above or a different method all together?

(Site is currently under development in protected directory which is why I have not posted a link)

 

See screen shot attached. It shows two different author pages side-by-side. I have both PostAuthor and Profile sections at the top of the page. I will not use both, just wanted to show you how these were looking on each page. Also note that the profile for Joseph shows up on both Author pages.

 

Thanks,

Danielle

post-38153-0-75126900-1359381772_thumb.p

Share this post


Link to post
Share on other sites

11 answers to this question

Posted · Report post

Danielle,

 

That's a good question.  The Meta is set by shortcode in Dashboard > PageLines > Site Optons > Blog and Posts.  You'd have to amend the shortcode and candidly, that's not my particular expertise.

 

Somehow, the shortcode must include or call the default URL / the author name so that link goes to your static page for the author.

 

You may need a Pro for this via http://www.pagelines.com/pros unless someone else knows how this is best done.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Danielle,

 

You'll install from our Store in Themes, the Base Theme. Activate it.

 

FTP into your site and go to wp-content/themes/pagelines-template-theme and edit the functions.php.

 

At the very end of the file, paste this:

    function pagelines_add_author_cat( $contactmethods ) {

    	// Add Google Profiles

    	$contactmethods['author_cat'] = 'Author Custom Category';

    	return $contactmethods;

    }

    add_filter( 'user_contactmethods', 'pagelines_add_author_cat', 10, 1);

    function pagelines_post_author_cat_shortcode( $atts ) {

    	$defaults = array(

    		'nofollow' => FALSE,

    		'before' => '',

    		'after' => ''

    		);

    	$atts = shortcode_atts( $defaults, $atts );

    	$author = get_the_author();

    	global $post;

    		//	Link?

    	if ( get_the_author_meta( 'author_cat', $post->post_author ) ) {

    		//	Build the link

    		$author = '<a href="' . get_the_author_meta( 'author_cat', $post->post_author ) . '" title="' . esc_attr( sprintf( __( 'Visit %s&#8217;s website', 'pagelines' ), $author ) ) . '" rel="external">' . $author . '</a>';

    	}

    	$output = sprintf( '<span class="author vcard sc">%2$s<span class="fn">%1$s</span>%3$s</span>', $author, $atts['before'], $atts['after'] );

    	return $output;
    }
    add_shortcode( 'post_author_cat', 'pagelines_post_author_cat_shortcode' );

Save it and re-upload it to the server.

 

The shortcode you place in Meta via Blog and Posts is now [post_author_cat] (replace the older one) and there is a new profile field in the user area called author custom category... you just add the profile url for the static page there.  The url must be the full one for the static page.

 

Browse to the site, check the user's name by clicking on it and you should go directly to that author's page.

Share this post


Link to post
Share on other sites

Posted · Report post

If you were to use the second option and you want only that author's profile to show on that page, CSS may be required to hide the others (more specifically, the display: none attribute). I can't say for certain without a link, however.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Catrina,

Below is the login info to access for the page. I would like to know more about how do go about using the CSS. In the profile admin options screen (under Profiles) it has CSS Classes. I created CSS class for each profile.

author-joseph-zingales and author-masteradmin. Not sure what I need to do next to make this work.

http://www.powerhourllc.com/mentor you will need to use the username/password below:
dturk/13powerhourweb!

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Catrina, Can you take another look using the link and login info I sent? I would greatly appreciate any help. I've tried contacting the developer of the Profiles section but have not received a response yet.

Thanks again!

Danielle

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

yes, I like that. How did you accomplish this?

thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

Simple static page with an image embedded into the content, aligned left for the text.

 

The list of blog posts are created easily. A category is created for each author.  When this happens, WP assigns a category number.  Make a note of it.

 

Install and activate Special Recent Posts, a free plugin. This uses a custom shortcode. Here's an example straight from that page.

[srp srp_number_post_option='10' srp_widget_title_hide_option='yes' srp_thumbnail_option='yes' srp_thumbnail_wdg_width='120' srp_thumbnail_wdg_height='120' srp_wdg_title_length_mode='fulltitle' srp_filter_cat_option='1032' srp_orderby_post_option='no' srp_widget_title_hide_option='yes' srp_orderby_post_option ='no' srp_order_post_option='DESC']

This bit: srp_filter_cat_option='1032'  controls the category. Replace 1032 with the category number you noted earlier.

 

You can play with these options and tweak it to suit your needs.  Here's the instructions for that. Please read it thoroughly.  We can't provide support for a third-party item. So it's important to learn it from the resources.

 

At the bottom of your page, after the closing ], on the next line, use WordPress to create a link to the category page.  Why? Because this will only show X posts from the author and you may have more. The WP specialy page generated when you created the category will have every post by the author.   Just make sure to carefully categorize your author posts.

Share this post


Link to post
Share on other sites

Posted · Report post

Sounds good thanks for all the great help. I just have one more question.

On your home page (http://www.epicurus.com/blog/), if I click on the author "Robert XXXXXXX" shown for the first Blog Entry it takes me to his Author page showing all his posts. How, instead, can I have this go to one of the Author Category pages you described?

 

Thanks,

Danielle
 

Share this post


Link to post
Share on other sites

Posted · Report post

Can I install the Base theme if I'm already using the iBlogPro theme? I am not familiar with how this works and don't want to lose everything I've created so far?

Share this post


Link to post
Share on other sites

Posted · Report post

Try the code in the pagelines-customization plugins functions.php

Share this post


Link to post
Share on other sites