The Perfect Social Media Metadata For Wordpress - SEOmoz YouTube Contest Winner

Moz · Intermediate ·📣 Digital Marketing & Growth ·13y ago
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 The Moz YouTube Contest
The Moz YouTube Contest
Moz
2 Age of Site and Old Links - Whiteboard Friday
Age of Site and Old Links - Whiteboard Friday
Moz
3 Creative Ways to Get Links from a Reluctant Target - Whiteboard Friday
Creative Ways to Get Links from a Reluctant Target - Whiteboard Friday
Moz
4 Interlinking Your Sites - Whiteboard Friday
Interlinking Your Sites - Whiteboard Friday
Moz
5 International SEO: Where to Host and How to Target - Whiteboard Friday
International SEO: Where to Host and How to Target - Whiteboard Friday
Moz
6 When Keyword Targeting Gets Tough - Whiteboard Friday Live
When Keyword Targeting Gets Tough - Whiteboard Friday Live
Moz
7 How SEOmoz Increased Our Twitter Followers by 250% - Whiteboard Friday
How SEOmoz Increased Our Twitter Followers by 250% - Whiteboard Friday
Moz
8 Outreach for Linkbuilding with Tom Critchlow - Whiteboard Friday
Outreach for Linkbuilding with Tom Critchlow - Whiteboard Friday
Moz
9 Preventing Link-Based Penalties - Whiteboard Friday
Preventing Link-Based Penalties - Whiteboard Friday
Moz
10 Top 5 SEO Questions from Customers - Whiteboard Friday
Top 5 SEO Questions from Customers - Whiteboard Friday
Moz
11 Which Link Metrics Should I Use? Part 2 of 2 - Whiteboard Friday
Which Link Metrics Should I Use? Part 2 of 2 - Whiteboard Friday
Moz
12 Correlation Data for SEO and Social Media Analysis - Part 1 - Whiteboard Friday
Correlation Data for SEO and Social Media Analysis - Part 1 - Whiteboard Friday
Moz
13 Correlation Data for SEO and Social Media Analysis - Part 2 - Whiteboard Friday
Correlation Data for SEO and Social Media Analysis - Part 2 - Whiteboard Friday
Moz
14 SEO Link Analysis Pitfalls - Whiteboard Friday
SEO Link Analysis Pitfalls - Whiteboard Friday
Moz
15 Cross-Domain Canonical the New 301 Redirect? - Whiteboard Friday
Cross-Domain Canonical the New 301 Redirect? - Whiteboard Friday
Moz
16 SEOmoz Google Analytics Setup - Whiteboard Friday
SEOmoz Google Analytics Setup - Whiteboard Friday
Moz
17 Competitive Link Analysis Tips Using Open Site Explorer - Whiteboard Friday
Competitive Link Analysis Tips Using Open Site Explorer - Whiteboard Friday
Moz
18 Mobile SEO Tips For Everyone - Filmed on an iPad 2 - Whiteboard Friday
Mobile SEO Tips For Everyone - Filmed on an iPad 2 - Whiteboard Friday
Moz
19 Project Management Tips for Marketing Teams - Whiteboard Friday
Project Management Tips for Marketing Teams - Whiteboard Friday
Moz
20 Duane Forrester from Bing Talks Social, Schema, and Honey Badger - Whiteboard Friday
Duane Forrester from Bing Talks Social, Schema, and Honey Badger - Whiteboard Friday
Moz
21 How Google's Panda Update Changed SEO Best Practices Forever - Whiteboard Friday
How Google's Panda Update Changed SEO Best Practices Forever - Whiteboard Friday
Moz
22 SEO Interview Questions - Whiteboard Friday Moz
SEO Interview Questions - Whiteboard Friday Moz
Moz
23 Google's Negative Ranking Factors - Whiteboard Friday
Google's Negative Ranking Factors - Whiteboard Friday
Moz
24 Is External Linking Good For SEO? - Whiteboard Friday
Is External Linking Good For SEO? - Whiteboard Friday
Moz
25 Mixing Viral Content With Business Content - Whiteboard Friday
Mixing Viral Content With Business Content - Whiteboard Friday
Moz
26 Replicate Google's Panda Questionnaire - Whiteboard Friday
Replicate Google's Panda Questionnaire - Whiteboard Friday
Moz
27 Tactics for Early Adopter Marketers on Google Plus - Whiteboard Friday
Tactics for Early Adopter Marketers on Google Plus - Whiteboard Friday
Moz
28 What is Google's PageRank Good For? - Whiteboard Friday
What is Google's PageRank Good For? - Whiteboard Friday
Moz
29 Article Marketing: Mostly A Scam - Whiteboard Friday
Article Marketing: Mostly A Scam - Whiteboard Friday
Moz
30 Statistics for SEO: Don't Make These Mistakes - Whiteboard Friday
Statistics for SEO: Don't Make These Mistakes - Whiteboard Friday
Moz
31 An SEO Checklist for New Sites - Whiteboard Friday - Search Engine Optimization
An SEO Checklist for New Sites - Whiteboard Friday - Search Engine Optimization
Moz
32 Beyond Exact Match Anchor Text To Next Generation Link Signals - Whiteboard Friday
Beyond Exact Match Anchor Text To Next Generation Link Signals - Whiteboard Friday
Moz
33 Keyword Metrics for SEO (And Driving Actions from Data) - Whiteboard Friday
Keyword Metrics for SEO (And Driving Actions from Data) - Whiteboard Friday
Moz
34 Local SEO Checklist for New Sites - Whiteboard Friday
Local SEO Checklist for New Sites - Whiteboard Friday
Moz
35 Title Tags - Is 70 Characters the Best Practice? - Whiteboard Friday
Title Tags - Is 70 Characters the Best Practice? - Whiteboard Friday
Moz
36 Google Hides Search Referral Data with New SSL Implementation - Emergency Whiteboard Friday
Google Hides Search Referral Data with New SSL Implementation - Emergency Whiteboard Friday
Moz
37 How Big is Your Long Tail? - Whiteboard Friday
How Big is Your Long Tail? - Whiteboard Friday
Moz
38 Keyword Swing - SEOmoz YouTube Contest Winner
Keyword Swing - SEOmoz YouTube Contest Winner
Moz
39 Retargeting Through Affiliates - SEOmoz YouTube Contest Winner
Retargeting Through Affiliates - SEOmoz YouTube Contest Winner
Moz
The Perfect Social Media Metadata For Wordpress - SEOmoz YouTube Contest Winner
The Perfect Social Media Metadata For Wordpress - SEOmoz YouTube Contest Winner
Moz
41 The PR Funnel - SEOmoz YouTube Contest Winner
The PR Funnel - SEOmoz YouTube Contest Winner
Moz
42 Developing a User-Centric Content Strategy for Effective Content Marketing - Moz Contest Winner
Developing a User-Centric Content Strategy for Effective Content Marketing - Moz Contest Winner
Moz
43 Black Hat vs White Hat SEO - SEOmoz YouTube Contest Winner
Black Hat vs White Hat SEO - SEOmoz YouTube Contest Winner
Moz
44 Video SEO Tip for Google Plus - SEOmoz YouTube Contest Winner
Video SEO Tip for Google Plus - SEOmoz YouTube Contest Winner
Moz
45 Content Marketing: The Good, the Bad and the Ugly - Moz YouTube Contest Winner
Content Marketing: The Good, the Bad and the Ugly - Moz YouTube Contest Winner
Moz
46 eCommerce SEO - Moz YouTube Contest Winner
eCommerce SEO - Moz YouTube Contest Winner
Moz
47 Ten Painless Tactics To Earn Attention On Twitter - Whiteboard Friday
Ten Painless Tactics To Earn Attention On Twitter - Whiteboard Friday
Moz
48 Mozcation Milwaukee 2012 Tom Snyder Part 2
Mozcation Milwaukee 2012 Tom Snyder Part 2
Moz
49 The Big Picture of CRO - Rand Fishkin - Moz
The Big Picture of CRO - Rand Fishkin - Moz
Moz
50 Portsmouth Mozcation Walter Elly Part 1
Portsmouth Mozcation Walter Elly Part 1
Moz
51 Consultant Vendor Relationships - Whiteboard+
Consultant Vendor Relationships - Whiteboard+
Moz
52 Structured Social Sharing Formula - Whiteboard Friday
Structured Social Sharing Formula - Whiteboard Friday
Moz
53 4 Content Marketing Focused Tips for Growing Your Followers & Fans - Whiteboard Friday
4 Content Marketing Focused Tips for Growing Your Followers & Fans - Whiteboard Friday
Moz
54 Top Ten Twitter Tactics Part 2 - Whiteboard Friday
Top Ten Twitter Tactics Part 2 - Whiteboard Friday
Moz
55 Whiteboard Friday on Google's Penguin Update
Whiteboard Friday on Google's Penguin Update
Moz
56 Agile Marketing - Whiteboard Friday Moz
Agile Marketing - Whiteboard Friday Moz
Moz
57 Improving Social & Subscription Calls to Action - Whiteboard Friday
Improving Social & Subscription Calls to Action - Whiteboard Friday
Moz
58 Eight Link Building Tips - Whiteboard Friday
Eight Link Building Tips - Whiteboard Friday
Moz
59 Consultant Vendor Relationships - Whiteboard Friday
Consultant Vendor Relationships - Whiteboard Friday
Moz
60 Smarter Internal Linking - Whiteboard Friday
Smarter Internal Linking - Whiteboard Friday
Moz

Related Reads

📰
StackOverflow is the hometown of arrogant people
Navigating online communities like StackOverflow requires understanding their norms and expectations to avoid negative interactions
Reddit r/learnprogramming
📰
Bulk SMS Service Provider
Learn how to use a bulk SMS service provider for fast, secure, and reliable business communication and why it matters for marketing and customer engagement
Dev.to · Mertes Digital
📰
Spotify pushes back on Kalshi and Polymarket after a song’s chart run looked rigged
Spotify removes 500,000 streams from a song due to suspicious activity related to prediction markets, and what this means for AI-driven music analytics
The Next Web AI
📰
The Hidden Cost of Searching for Company Knowledge (And Why AI Still Struggles)
Discover the hidden costs of searching for company knowledge and why AI still struggles to provide effective solutions
Dev.to · sachin A
Up next
Social Media Marketing: Explained
GaryVee Video Experience
Watch →