Using php to overwrite or replace title tag, while using yoast [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I use yoast for my seo, indexing, title, sitemap etc. But I have one issue, for my product pages I want … Read more

get attachment title based on attachment id

I’m getting an image through getMeta. It returns me the id of the attachment. Now I want to get the titel, alternative text, description and so on. For the alternative text this works very well: get_post_meta($logo, ‘_wp_attachment_image_alt’, true); Now I want to get the title. I found out I can do that with $attachment->post_title, but … Read more