I don't want Pinterest to automatically select post's "featured image"
-
Hi there. My site is https://www.acenavigates.com and I am using the PenciDesign “Soledad” theme. Which, to be honest, is absolutely brilliant. I’ve pretty much got everything set up, but I’ve run into quite the annoying problem.
In the Soledad theme, when you click on the Pinterest icon at the bottom of the post, it takes you to the Pinterest pin page. But the problem is, it uses my featured image as the ONLY option for pinning. This is NOT ideal because my featured images need to be quite horizontally skinny to fit the aesthetic of my featured slider on my homepage. Pinterest is much better using vertical images. And anyways, I’m sure the user would appreciate the variety of selection.
I’ve gotten as far as locating the function in Soledad’s .php file. This is what it says.
$pinterest_image = wp_get_attachment_url(get_post_thumbnail_id( $post->ID ));
Now I understand that
get_post_thumbnail_id( $post->ID ))
is the FEATURED IMAGE being retrieved as the image to be used, if I’m not mistaken.But what can I replace this with so that the user is given options as to which image to use as the pin?
I’ve searched all over the web the past day and a half, and spent hours in the wordpress codex documentation to no avail. There are similar inquiries here on the forum, but none of them solve my issue.
I would definitely appreciate your help.
- The topic ‘I don't want Pinterest to automatically select post's "featured image"’ is closed to new replies.