Jump to content


Photo
- - - - -

Showing co-authors in Multi-authored blog posts


  • Please log in to reply
28 replies to this topic

#1 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 02 April 2012 - 02:47 PM

Hello, I'm using platform pro and want to allow posts with multiple authors. I installed the Co-Authors Plus Plug in but I can't see how to get the authors to show up in the Meta Bar. There is a previous discussion on this:

Please Login or Register to see this Hidden Content

That discussion never reached a resolution. Is there any fix out there for this?

#2 Jenny

Jenny

    Owned by PageLines

  • Unicorn Store Dev

  • 2917 posts
  • LocationWV
  • Country: Country Flag

Posted 02 April 2012 - 04:30 PM

With Platform Base as your active theme, have you added the php function listed on the plugin page (

Please Login or Register to see this Hidden Content

)?

#3 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 02 April 2012 - 04:48 PM

So my active theme is the Pagelines Framework. It isn't at all clear where to put that code.

#4 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 02 April 2012 - 05:38 PM

Something like this:

Please Login or Register to see this Hidden Content



#5 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 02 April 2012 - 07:59 PM

@Simon. Is that something you just put into the main Pagelines? Or is there a specific place to paste that code.

#6 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 02 April 2012 - 08:43 PM

oh wait this is platformpro? The 'action' will be pagelines_loop_after_post_content for platformpro and you will have to add it to platformbase/functions.php

#7 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 03 April 2012 - 01:40 PM

I'm not a developer. Just a user. It really isn't clear how to amend the Framework to put in that code. For instance, there appears to be no functions.php in the theme -- I have no idea why. :-S

#8 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 03 April 2012 - 01:51 PM

You need to download platformbase from your members section, install it as a wordpress theme and activate it. Then edit the functions.php file inside the platformbase folder.

#9 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 03 April 2012 - 03:03 PM

I'm running the Pagelines Framework. There is a functions file. Just paste the code anywhere?

#10 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 03 April 2012 - 03:08 PM

Sorry no then, i read your opening post that says your running PlatformPro. So if you are running PageLines Framework then install the pagelines customize plugin ( free in the store in wp-admin ) then open wp-content/plugins/pagelines-customize/functions.php and add the line there.

#11 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 03 April 2012 - 03:49 PM

I know you must think I'm really slow. However, I installed the plugin. I have gone to the theme editor. There is a functions.php file there but I'm not sure it is the one you mean. In any case, where to I paste "add_action( 'pagelines_loop_after_post_content', 'coauthors_posts_links' );"?

#12 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 03 April 2012 - 04:03 PM

use the plugin editor, select pagelines-customize plugin, then select functions.php

#13 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 04 April 2012 - 12:35 PM

I now get it and have pasted the code add_action( 'pagelines_loop_after_post_content', 'coauthors_posts_links' ); into the functions.php file as instructed. However, that hasn't actually changed anything. I tried putting [coauthors_posts_links] into the Metabar but that only mean that the text '[coauthors_posts_links]' now appeared. What am I missing? Thanks.

#14 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 04 April 2012 - 06:58 PM

I'm going to ask one of our developers to help more directly with this. What time zone are you in, should we need to do a screen sharing session?

#15 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 04 April 2012 - 07:53 PM

I'm in Toronto (East Coast US time)

#16 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 04 April 2012 - 08:29 PM

As soon as our developer gets back in, I'll discuss this with you and keep you updated. Thanks for your patience. I'm also EST, but he's GMT.

#17 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 05 April 2012 - 12:41 PM

Thanks. I'm sure it is pretty simple. It is just obscure to me. Multiple authors would be a good feature for Pagelines.

#18 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 05 April 2012 - 07:06 PM

Josh, did you just add that line to wp-content/plugins/pagelines-customize/functions.php? If you did, I must apologize for Simon's economic use of words. You need to include that in a hook.

Please Login or Register to see this Hidden Content

Hooks implement a function within the site, but they integrate into the PHP. One must take care how a hook is written and while the code above is part of a hook, I don't think it's a complete one. I'll continue researching this.

#19 beardedavenger

beardedavenger

    Unicorn Wrangler

  • Members

  • 1219 posts
  • Country: Country Flag

Posted 05 April 2012 - 07:35 PM

What's up Josh! Smack this piece of code that's included in this snippet into your functions.php:

Please Login or Register to see this Hidden Content

Then, head to your Metabar settings, and paste this guy in place [show_authors] Should look like below.

Please Login or Register to see this Hidden Content

And here is the final result from above:

Please Login or Register to see this Hidden Content

Let us know if this works for you!

#20 joshgans

joshgans

    Member

  • Members
  • 15 posts

Posted 05 April 2012 - 07:52 PM

So I just what you said. My site is now down and inaccessible.