The Perfect Social Media Metadata For Wordpress - SEOmoz YouTube Contest Winner
Skills:
SEO & SEM90%
Key Takeaways
Optimizes social media metadata for WordPress using OpenGraph and Twitter Cards
Full Transcript
hey everyone my name is Doug Thomas I'm a paid search specialist at search influence the largest internet marketing company on the Gulf Coast and today I'd like to talk to you about social metadata we're going to use WordPress because it's pretty easy to use and right now I'm taking my Twitter handle putting it in my profile under aim and my Google+ URL and putting it under website after saving we're going to go to this post and set up some custom Fields one's going to be viral title one's going to be viral desk and one's going to be OG image all with underscores now I'm going to open up my FTP program and open up header.php in the theme file and take a look at that first thing that we're going to do is we're going to add the non-standard prefix attribute to the HTML tag we're going to set up three things today what you need for opengraph the basic Twitter cards which are in beta and Google+ authorship opengraph uses metatags with a property attribute and we're going to set up OG site name using the PHP blog info name we're then going to tell Facebook what type of page it is by saying if it's a single blog post it's an article otherwise it's a website we're then going to tell Facebook where we're from by saying that we're from the US by using OG local now we really get to the meat of the open graph metadata by saying that if there's a custom field called viral title and it's set that's what's going to be used for the open graph title otherwise we'll just use whatever the title actually is the OG description is going to be the craziest code we're going to do today we're going to copy and paste the code from the content of the OG title replace viral title With viral desk and then if viral desk is not set what we're going to do is we're going to take 197 characters of the content without HTML tags add a dot dot dot and then we'll be done with that the last part of the open graph is to set the thumbnail image what we're going to do is we're going to copy and paste that same code from before and change viral title to OG image then we're going to hardcode a default image just in case that's not set put Twitter for metadata also uses the meta tag but uses the name attribute the first one is card and we're going to hardcode it to summary the next Twitter metadata is site and that's just hardcoded to whatever the site's Twitter handle is the last two lines of code for the Twitter Creator and the Google+ authorship use the same PHP what we do is pull from the author profile the Twitter from the aim field and the Google+ profile from the URL field the next step is to refresh the page to see if the theme works then check the page out in the Google Rich tester which will also pick up open graph data
Original Description
SEO metadata has seen a resurgence in importance as social media sharing is on the rise. Douglas Thomas from www.searchinfluence.com has a great tip for making sure your WordPress metadata is perfect for social media sharing every time. Douglas has also published a longer blog post with clearer screenshots of the data at: http://www.searchinfluence.com/2012/08/wordpress-social-metadata/
Check out the blog post for more videos from our other contestants: http://www.seomoz.org/blog/youtube-contest-winners
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Moz · Moz · 40 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
▶
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
The Moz YouTube Contest
Moz
Age of Site and Old Links - Whiteboard Friday
Moz
Creative Ways to Get Links from a Reluctant Target - Whiteboard Friday
Moz
Interlinking Your Sites - Whiteboard Friday
Moz
International SEO: Where to Host and How to Target - Whiteboard Friday
Moz
When Keyword Targeting Gets Tough - Whiteboard Friday Live
Moz
How SEOmoz Increased Our Twitter Followers by 250% - Whiteboard Friday
Moz
Outreach for Linkbuilding with Tom Critchlow - Whiteboard Friday
Moz
Preventing Link-Based Penalties - Whiteboard Friday
Moz
Top 5 SEO Questions from Customers - Whiteboard Friday
Moz
Which Link Metrics Should I Use? Part 2 of 2 - Whiteboard Friday
Moz
Correlation Data for SEO and Social Media Analysis - Part 1 - Whiteboard Friday
Moz
Correlation Data for SEO and Social Media Analysis - Part 2 - Whiteboard Friday
Moz
SEO Link Analysis Pitfalls - Whiteboard Friday
Moz
Cross-Domain Canonical the New 301 Redirect? - Whiteboard Friday
Moz
SEOmoz Google Analytics Setup - Whiteboard Friday
Moz
Competitive Link Analysis Tips Using Open Site Explorer - Whiteboard Friday
Moz
Mobile SEO Tips For Everyone - Filmed on an iPad 2 - Whiteboard Friday
Moz
Project Management Tips for Marketing Teams - Whiteboard Friday
Moz
Duane Forrester from Bing Talks Social, Schema, and Honey Badger - Whiteboard Friday
Moz
How Google's Panda Update Changed SEO Best Practices Forever - Whiteboard Friday
Moz
SEO Interview Questions - Whiteboard Friday Moz
Moz
Google's Negative Ranking Factors - Whiteboard Friday
Moz
Is External Linking Good For SEO? - Whiteboard Friday
Moz
Mixing Viral Content With Business Content - Whiteboard Friday
Moz
Replicate Google's Panda Questionnaire - Whiteboard Friday
Moz
Tactics for Early Adopter Marketers on Google Plus - Whiteboard Friday
Moz
What is Google's PageRank Good For? - Whiteboard Friday
Moz
Article Marketing: Mostly A Scam - Whiteboard Friday
Moz
Statistics for SEO: Don't Make These Mistakes - Whiteboard Friday
Moz
An SEO Checklist for New Sites - Whiteboard Friday - Search Engine Optimization
Moz
Beyond Exact Match Anchor Text To Next Generation Link Signals - Whiteboard Friday
Moz
Keyword Metrics for SEO (And Driving Actions from Data) - Whiteboard Friday
Moz
Local SEO Checklist for New Sites - Whiteboard Friday
Moz
Title Tags - Is 70 Characters the Best Practice? - Whiteboard Friday
Moz
Google Hides Search Referral Data with New SSL Implementation - Emergency Whiteboard Friday
Moz
How Big is Your Long Tail? - Whiteboard Friday
Moz
Keyword Swing - SEOmoz YouTube Contest Winner
Moz
Retargeting Through Affiliates - SEOmoz YouTube Contest Winner
Moz
The Perfect Social Media Metadata For Wordpress - SEOmoz YouTube Contest Winner
Moz
The PR Funnel - SEOmoz YouTube Contest Winner
Moz
Developing a User-Centric Content Strategy for Effective Content Marketing - Moz Contest Winner
Moz
Black Hat vs White Hat SEO - SEOmoz YouTube Contest Winner
Moz
Video SEO Tip for Google Plus - SEOmoz YouTube Contest Winner
Moz
Content Marketing: The Good, the Bad and the Ugly - Moz YouTube Contest Winner
Moz
eCommerce SEO - Moz YouTube Contest Winner
Moz
Ten Painless Tactics To Earn Attention On Twitter - Whiteboard Friday
Moz
Mozcation Milwaukee 2012 Tom Snyder Part 2
Moz
The Big Picture of CRO - Rand Fishkin - Moz
Moz
Portsmouth Mozcation Walter Elly Part 1
Moz
Consultant Vendor Relationships - Whiteboard+
Moz
Structured Social Sharing Formula - Whiteboard Friday
Moz
4 Content Marketing Focused Tips for Growing Your Followers & Fans - Whiteboard Friday
Moz
Top Ten Twitter Tactics Part 2 - Whiteboard Friday
Moz
Whiteboard Friday on Google's Penguin Update
Moz
Agile Marketing - Whiteboard Friday Moz
Moz
Improving Social & Subscription Calls to Action - Whiteboard Friday
Moz
Eight Link Building Tips - Whiteboard Friday
Moz
Consultant Vendor Relationships - Whiteboard Friday
Moz
Smarter Internal Linking - Whiteboard Friday
Moz
More on: SEO & SEM
View skill →Related Reads
📰
📰
📰
📰
StackOverflow is the hometown of arrogant people
Reddit r/learnprogramming
Bulk SMS Service Provider
Dev.to · Mertes Digital
Spotify pushes back on Kalshi and Polymarket after a song’s chart run looked rigged
The Next Web AI
The Hidden Cost of Searching for Company Knowledge (And Why AI Still Struggles)
Dev.to · sachin A
🎓
Tutor Explanation
DeepCamp AI