Custom og:image url for | General - All in One SEO Pack Pro Forum | Support | Semper Plugins

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Custom og:image url for
April 26, 2016
3:51 am
Avatar
staceypirvin
New Member
Guests
Forum Posts: 1
Member Since:
April 26, 2016
sp_UserOfflineSmall Offline

I’m currently trying out AIOSEOP on my localhost and have a question about the API and the Social Meta Module. I am having trouble finding any API examples or documentation for manipulating AIOSEOP’s opengraph social meta features. 

My site uses a custom field to display a gallery. Each image in the gallery is displayed with its own unique URL. Example of a unique url in a gallery: webdomain.com/gallery/gallery-title/image/17/image-title-here/

I’m successfully using the following code in my functions.php file to customize/filter AIOSEOP’s meta tags for posts/pages with an image url query variable: http://pastebin.com/4wrY4iW2

The code linked above works great for replacing the page/post’s canonical url, title, and description with the canonical url, title, and description for the specific image being viewed. I really need to get the og:image url to be the image url of the image being viewed (for example: the image/attachment ID is 17 in the url example above).

Is there a way to use a filter in my functions.php file to completely replace/override AIOSEOP’s og:image social meta settings on pages/posts when an image url query variable is used?

Thanks in advance!

April 27, 2016
7:07 pm
Avatar
Michael Torbert
Admin
Forum Posts: 456
Member Since:
October 13, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

Forum Timezone: America/New_York
Most Users Ever Online: 964
Currently Online:
23
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 36
Members: 22986
Moderators: 0
Admins: 8
Forum Stats:
Groups: 4
Forums: 28
Topics: 2110
Posts: 9181
Newest Members:
sanpeigogo0874
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve Klasen, Arnaud: 252Ashish Ravi
[i]
[i]
Skip to toolbar