homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

Twitter card
Article summary

 6:25 pm on Jan 19, 2014 (gmt 0)

Allowing for a summary of a posted article and link to your site from your Tweeter page requires the "Tweeter Card" calling for an additional 6 lines of meta name in the article header.
How could that be done in WP?
Any plugin to facilitate the task?



 9:11 pm on Jan 19, 2014 (gmt 0)

Good summary post https://dev.twitter.com/docs/cards


 9:55 pm on Jan 19, 2014 (gmt 0)

Interesting, thanks!


 2:51 pm on Jan 20, 2014 (gmt 0)

It is a good beginning but does not answer my question
How do you inject in the WP article's header the new meta tags?


 7:33 pm on Jan 21, 2014 (gmt 0)

You should be able to just edit your theme's header file and add what you need there. The prefered method for editing would be to use a Child Theme.


 8:13 pm on Jan 21, 2014 (gmt 0)

That I have already done to adapt it to my needs,
but what I need is to edit each page header, which is not possible as, indeed, there is only one header!

So how and where is that card set to serve a per page excerpt?


 3:24 pm on Jan 22, 2014 (gmt 0)

You can do this but it will require some PHP programming.

The general process is this: You'll need to create a function in your theme's function.php file and then test for the current page being displayed using is_page(). Then you can place code into the header for each page.


 3:50 pm on Jan 22, 2014 (gmt 0)

OK thanks, that I can do, let's crank on my UltraEdit.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved