Search Results for 'author box'

Results from the Forum
simchris
Participant
#0

This is properly labeled version of a prior post.

Hi, folks
there is a minor bug, which is a user field conflict with the Yoast SEO plugin which breaks the proper OG tag meta data for the author’s twitter ID for twitter card sharing, etc.

SPECIFICALLY:
Yoast setups a field called “twitter” which needs only the user’s id such as
@userid

While, the theme needs to have the full URL/URI to twitter
http://twitter/userid

PROBLEM:
if we use the full URL with Newspaper in the user > settings > twitter field, in order to have the link work in the author box, we get a broken twitter card meta data with Yoast

conversely, if we leave it as it’s been for quite a long time, with only the @userid in the twitter field, then in Newspaper, in the author box, we get a broken 404 url on every post, which is
/site/name-of-pretty-permalink@USERID

SOLUTION:
While I’ve put in a bug track on github with Joost/Yoast for a possible solution; the fact is many many people are using Yoast – many more than the theme at the moment.

Ideally, you should register a new field “Twitter URL” (e.g., td_twiturl ) in functions.php and then pull the author box meta from the new field and not the pre-existing twitter field.

I am happy to hack the theme to register a new field for our site, however need to know where in your templates/includes/modules I can find the author box loop to pull the new registered author meta field for “twitter URL” in place of “Twitter.”

ALTERNATE OPTION: let me know know to mod the theme to not pull the twitter user meta into the author box, so we can use the @USERID for the Yoast meta pull in the head.

UPSHOT:
right now twitter card meta data for all authors is broken with the theme.

simchris
tagDiv Member

UPDATE:
1) the issue of the ?rel=author in footer is no longer an issue, and Google does now prefer to just use the meta tag in the HTML head:

<link rel="author" href="https://plus.google.com/+ChristopherSimmons/posts"/>
<link rel="publisher" href="https://plus.google.com/+NeotropeNet/posts"/>

* technically you should only be adding that element at bottom if an SEO plugin not running; however we can easily comment it out in the theme functions.php file

2) I have put in a bug track on github (Issue #372) for the Yoast SEO plugin to perhaps create an additional field, perhaps Yoast Twitter ID to be able to properly embed @USERID in head, but retain full twitter URL for use on page for author box, etc.

IDEALLY: we should be able to somehow for the moment turn off the option in author box to pull the @USERID twitter ID as it’s more critical to include the correctly parsed @USERID for the twitter card for the article author, than have link in author box for twitter. Unfortunately, if left alone, we end up with a bad link of:
/site/story-permalink/@USERID … in the author boxes, which will end up generating bad not found errors for Google, which is also really bad.

*POSSIBLE SOLUTIONS* right now
(1) turn off the twitter field link for the author box in theme (I cannot locate this in the snippets)
(2) turn off *all* links at bottom of twitter box temporarily as stop gap fix; better than nothing
(3) add/register new user account data field to functions called “Twitter URL” to add to user data meta for the full twitter.com account URL – and then call this in the theme vs “twitter” field? — for the moment we’d prefer this option, if you folks have your usual nifty arrow-screens on how to do that. This way your theme will work with the huge installed base of YOAST SEO (and possibly others who follow same method of putting @USERID in the twitter field, vs the full URL).

Option #3 would be awesome, in my opinion.

For those interested in what I sent to the Joost and the Yoast team via Github bug track:
REF: http://wordpress.org/support/topic/conflict-with-user-account-twitter-data-in-themes

HI, Joost and co…

ran into one issue with Yoast and several theme devs lately.

Specifically, under each user account setup, the field for Twitter is now common to Yoast and many themes, and themes use the field to put twitter link in things like an author box.

Problem is that Yoast SEO looks for simply @NAME from the user > twitter field to print in the META.

So, this ends up doing this:

<meta name=”twitter:creator” content=”@https://twitter.com/USER”/>

however, if we put just @USER in the twitter field, we would see this in themes under things like author box

Follow on twitter:

LIKELY BEST FIX would be to come up with a new field the user account setup, like Yoast Twitter ID vs simply Twitter.

That way we could have:

Yoast Twitter ID = @USER
Twitter = https://twitter.com/USER

Since the field “twitter” is now a standard in most themes, if not WP, then it seems more logical for Yoast to either filter out the URL when it’s there to just print the @USER .. or setup alternate field for the non URL version of code.

http://wordpress.org/plugins/wordpress-seo/

simchris
tagDiv Member

Hi, as quick follow up.

Seems Yoast adds data field for Twitter and Google+ and expects to see

(user setup, per user/author)
Twitter account: @name
Google+: linktogoogle/accountname?rel=author

When the theme uses these same fields for placing in author box, it expects to see:
Twitter account: https://linktotwitter/name
Google+: linktogoogle/accountname

So….. seems either theme or Yoast will break.

Fix options:
1) use @name in user setup for proper author placement in yoast og/twitter card META; and then add new user data record for Newspaper Twitter Account (full URL)
2) or, get Yoast to update to use full twitter account – but with tens of thousands of sites using Yoast, seems more applicable to modify theme behavior at this point

1) Option to remove the Google author data from footer generated by theme, which is redundant with yoast/etc.
2) remove rel=”author” and conform with yoast and others using the full url with ?rel=author already added; but still have option to remove since redundant even without the additional rel=author added.

Right now we either have broken meta data for sharing to author’s @account in twitter/tweets, or broken link under author box — choice of two evils. And for Google author have broken link in footer for rel=author?rel=author

simchris
Participant
#0

Hi, folks
we’re using the YOAST SEO module and have run into couple of minor issues with the theme v 1.71.

* First, since Yoast is already putting our Google publisher ID with rel tag in header, we don’t need it printed second time in footer.

* Second – and far more critical – when putting in the full URL for twitter for an author, under the “user” setup, the URL works properly in the author box on posts, but then breaks Yoast META in the post head so that the full URL vs the author ID is printed:

<meta name=”twitter:creator” content=”@https://twitter.com/AUTHORID”/>

vs

<meta name=”twitter:creator” content=”@AUTHORID”/>

I have tried using Yoast’s “force override” but doesn’t impact that element. We don’t have this issue with other themes we’re using (e.g., “Canvas”), which implies that the theme is “specifying” that information for the META tags.

Is there a function we can use to over-ride any of the theme META data in head to address this? Kind of a big deal when trying to tweet something.

(Also worth noting that Pinterest button still breaks image trying to share when there is a featured image, since the “featured” image is still linked to pagename/# which should NOT be self linked!)

visionsharp
tagDiv Member

Ok, No problem at all.

Thanks for your response

Radu
tagDiv Staff

Unfortunately, you won’t be able to display them in two columns of three. We may improve this in the future

visionsharp
Participant
#0

Hi there,

I have an authors box on my home page. I have 6 authors so i want to display them in two columns of three. How would i do that?

http://socialbettingprofessor.co.uk/wordpress/

Thanks!

simchris
tagDiv Member

To clarify:
for us, we MUST HAVE the byline on the actual posts … regardless of any functionality on categories, tags, homepage, or other blocks.

ALL articles should have byline at top as the author box traditionally is intended to be an “also ran” for a mini-bio about the author, and not to identify who authorized the story. With a 3,200 word article, the byline needs to be at top to clearly identify the AUTHOR of an article.

Willing to pay to get this done!

Chris

iOSPortalSK
Participant
#0

Hi there,

So I was wondering whether you would add an important feature: “by line” to aforementioned module 9 + article view (and to everything else to be honest). I feel like the author box isn’t cutting it in terms of who wrote the article (I’d rather had it turned off), so a nice little “by line” would be great. Every single big tech blog site uses it and it should be available in your great theme too!

Also, instead of just showing the date the article was published on (article view) it would be nice to have something like “Published on” just in front of it, follow by “by” and author’s name. So all in all, it would look like this: Published on 13/10/2013 by iOSPortalSK (iOSPortal being hyperlinked to authors profile).

Let me know what you think and thanks in advance! 🙂

simchris
Participant
#0

Hi, is there a CSS hook or addition or checkbox we can activate to also have the author name be somewhere at top of a story on post pages, and also on excerpts and such ? … aka the “byline” which is common with ALL newspapers, magazines, etc. ?

This seems like an odd omission since this is one of the most crucial elements of publishing.

Kaskarino
tagDiv Member

Hello Radu,

I think it worked:) Thanks and consider to add this option to the next update.

Regards

rcraig232
tagDiv Member

That will work.

In the future.. in the post options for a post, might want a checkbox, “hide the author box in this post”

Thanks, great work.

Radu
tagDiv Staff

Hello,
to hide the box for the author with id 1 http://screencast.com/t/upbichKQD
to hide the box for multiple authors: http://screencast.com/t/6T4yVnkHf


@rcraig232
I will add classes to them in the next update. To make it easier to hide the boxes via css. Until then, the method from above will work for you?

rcraig232
tagDiv Member

I’m also interested in disabling the Author box on a per author OR per post basis.. Any help?

Thanks!

Kaskarino
Participant
#0

Hi there,

I have enabled author box in posts settings, but I want the posts from just 1 author not to show the author box.

In my previous theme I have used a conditional tag to do this but I don’t know where to add the code.

Here is the code that i used in single.php:
before the authorbox div element:

<?php define (‘author_x’, ‘author no’);
$author_id = get_the_author_ID(); ?>
<?php if ( $author_id != author_x ) { ?>

And after the authorbox div element:

<?php } ?>

Can you please tell me where to add the code or what else to do in order to do it?

Regards

Viewing 15 results - 2,326 through 2,340 (of 2,340 total)