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

Lost password?
Advanced Search
Forum Scope


Forum Options

Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Custom og:image url for
April 26, 2016
3:51 am
New Member
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:

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:

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
Michael Torbert
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: Malgorzata Witkowska
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 36
Members: 23928
Moderators: 1
Admins: 7
Forum Stats:
Groups: 4
Forums: 28
Topics: 2143
Posts: 9332
Newest Members:
Manda Razaka
Moderators: semperplugins: 0
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud Broes
Skip to toolbar