Jump to content

Archived

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

evscicats

DMS Multiple Authors Shortcode

Recommended Posts

evscicats

I'm just putting this out there as a nice shortcode to add to the DMS metabar shortcodes list, [show_authors] allows you to list multiple author names in the Metabar Mode (default) in the blog roll and post meta areas.  I remembered I used it in Framework and sure enough it still works in DMS.  

 

The shortcode does not work with Author Avatar Mode.  Only the first author gets their face displayed.  Is there any chance Author Avatar Mode could allow for two?  Just curious.

 

Thanks, 

 

Jerrad

Share this post


Link to post
Share on other sites
James B

Hi there,

 

Nice idea, I'll this in to the ideas and feedback forum for the developers to review.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
evscicats

Thanks James. 

 

I forgot to mention that in order to have multiple authors on posts, you need a plugin to make it work.  I use the Co-Authors Plus plugin that is free on Wordpress.org.  http://wordpress.org/plugins/co-authors-plus/  I think there have been other posts on the Pagelines forums where other users are using this plugin too.  

Share this post


Link to post
Share on other sites
beardedavenger

I added this myself over a year ago. Uses Co Authors. Should work in author avatar mode as it's just a shortcode, but I think I remember seeing a bug that Author Avatar Meta is completely hosed right now.

 

https://github.com/pagelines/DMS/blob/Dev/includes/class.shortcodes.php#L725

 

[show_authors]


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
Jake

Hi evscicats - That's a great idea and just so you're aware, the Author Avatar Mode is not completely hosed, there is, however, a bug that has been brought to the attention of the developers so keep an eye on that as well. https://github.com/pagelines/DMS/issues/409. Thanks again for your suggestion.


Have you searched the forums yet or checked out the DMS user docs?

PageLines geek, blogging at MyUntangledLife.com

Share this post


Link to post
Share on other sites
beardedavenger

"That's a great idea and just so you're aware, the Author Avatar Mode is not completely hosed"

 

The meta doesn't work completely. In nickonese that terms is called "hosed". If it was one part of it that didn't work, that'd be different.

 

Besides this is irrelevant. It doesn't work right now.  There's a logged GH issue. And we move on.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
sheilahoff

THANK YOU! That shortcode did the trick for me in the meta bar BUT I still need help getting the second author displayed at the bottom. I did try the author avatar mode which only displays one author in the sidebar. Nice looking. I never knew what that option did. BUT...what I really need to make that happen is to have both authors' avatar and bio display at the bottom of the post where I've added a Post Author section. In fact I'd be happy to get both authors' avatars displayed in EITHER mode. Though my preference is to get them both at the bottom so they can have their bios with their avatars.

 

It appears the instructions here might tell a coder how to do that but I'm more a designer. If someone can tell me which file to put what code in I'm comfortable doing that in my child theme. Has anyone figured this out yet? I sure hope so. Client REALLY needs it.

 

Thanks.

Sheila

 

dev site using wp3.8 and newest DMS at: http://www.tca.hoffmangraphics.com


Sheila Hoffman | Hoffman Graphics | Seattle

Share this post


Link to post
Share on other sites
Erwan

Hi sheilahoff,

Just in case, did you try this free DMS plugin/section "Authors" by beardedavenger ?

You just have to add the authors' IDs (from 1 to 10 co-authors) and the section retrieves and displays their avatar & meta (from your users' WP admin/backend: core users' WP meta & additional section meta).

 

Share this post


Link to post
Share on other sites
sheilahoff

Thanks @Erwin. I didn't know about that plugin. I've downloaded and will try it out. It looks like it's meant for creating a page of authors. I need them at the bottom of each post. And since this is for a client it would certainly be preferable to have this automated and not need to manually add author IDs which will be a bit much. It actually might or might not even work to have unique author settings by post. It seems quite cumbersome. But very close. If this is already possible, it seems a coder would be able to tweak this to do the normal and most desirable automated adding of authors by post.


Sheila Hoffman | Hoffman Graphics | Seattle

Share this post


Link to post
Share on other sites

  • Similar Content

    • Steve Webb
      By Steve Webb+
      I am having an issue with DMS editor not loading.  Just keeps spinning and spinning.
      Have tried several things - Logged in and out, cleared cache, deactivated all plugins, but the issue persists.
      I even had our host restore from a backup a few weeks ago, when I know it WAS working, as I edited a text box on the homepage.  The restore from backup didn't help either.
      Also, the front end of the site shows that the site is framed, or boxed now (whatever you call it), instead of full width as it was previously (last week).
      Dev console shows that there are php errors in Google maps - file is attached.
      Can someone please help?  Not sure what else I can do here...
      Thanks in advance.
      -Matt

    • tuciudadenred
      By tuciudadenred+
      Hi everyone, what happens is that the web page metrosalarmas.com has a google tags which I have not attacked where I can look to remove those tags and be able to locate the correct ones.
    • Steve Webb
      By Steve Webb+
      I am having an issue with DMS editor not loading.  Just keeps spinning and spinning.
      Have tried several things - Logged in and out, cleared cache, deactivated all plugins, but the issue persists.
      I even had our host restore from a backup a week ago, when I know it WAS working, as I edited a text box on the homepage.  The restore from backup didn't help either.
      Also, the front end of the site shows that the site is framed, or boxed now (whatever you call it), instead of full width as it was previously (last week).
      Dev console shows that there are php errors in Google maps - file is attached.
      Can someone please help?  Not sure what else I can do here...
      Thanks in advance.
      -Matt

    • John Olsson
      By John Olsson+
      We're often working with ACF (https://www.advancedcustomfields.com/) that's great for user experience in the backend, 'cause we don't want out clients to be in the editor to much.
      So we want to be able to use shortcodes in the editor fields, regardless of section, THIS WOULD BE SO GREAT. Is there a way to fix this, it should open up som much more functionality.
      In ACF, the shortcode is for example: 
      [acf field="field_name"] ...for example, I want to att field_names value to display in a section, i understand I can make it in embed and so, but I want it in titles and options, the whole range.
      I know I can build my own sections, that we've done, but it's not very effective, and thats what PL5 is about.
      Any ideas on this, can Pagelines take this in the core? I guessing there are more than just ACF out there who can use this.

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
×