Adding Author and Date to 'Attachment Template'
-
Hello!
I am really thrilled to have this plugin. My theme for some reason lacked any path back to article from attachment pages.I run a very photo-intensive site. NavXT has helped me direct users when they arrive on an attachment page vs the article/post page.
SUPPORT ISSUE:
Trying to add my Author name and published Date to these attachment pages, though, and can’t figure it out. Here is a sample link to the page type i’m referring to.I gather these Author and Date tags should be pretty easy to add to my Attachment template. Can you help me trouble shoot why they are not showing up?
CURRENT ATTACHMENT TEMPLATE
<span typeof=”v:Breadcrumb”>%htitle%<span class=”vcard author post-author”><span class=”fn”></span></span> <h2 class=”entry-title”></h2> <span class=”post-date updated”></span></span>
REASON FOR REQUEST
The reason I would like to add these breadcrumbs for Author and Date is because my Google Webmaster tools gives me thousands (literally like 25000) “markup” errors for all these attachment pages. =[THANKYOU!!!
I have been on the troubleshooting section for like 5 hours … so gonna feel dumb but happy if its an easy fix or tweak.Tom
-
Could you please use the code button in the editor here when posting HTML, otherwise it gets garbled and makes it difficult for me (and others) to help?
As for what you are trying to do, I don’t think trying to add the date or author to the breadcrumb trail is the proper way to fix this issue (Ignoring the fact that Breadcrumb NavXT does not natively support this). You are going to be better off modify your theme/child theme and adding in the date and author in your theme/child theme’s attachment template.
okay. thanks for the reply. i do not know how to add it to the theme template, but will look elsewhere.
The topic ‘Adding Author and Date to 'Attachment Template'’ is closed to new replies.