This sounds like something you’d want to change in your theme (and is not really possible in CSS).
Posts imported from Instagram are saved with a custom field/post meta entry called instagram_url
which contains the full URL to the original post on Instagram, so in your theme you’d want to get that value, and use it to create a link (instead of a normal permalink).
Thanks you for your answer.
There is any code for function.php I could use to redirection that link?
Could be great if I could just make the changes on the child theme.
Many thanks for your help.
The only way that I can think of off the top of my head would be to use a filter on when you retrieve permalinks (probably via the post_link
filter), and check to make sure you’re looking at a post that was imported from Instagram, then return the link to instagram instead. You’d probably need to include some conditionals to make sure this is only operational on the front end of your site as well though.
Okay many thanks. but I think this beyond my knowledge.
Do you think you can guide me to do changes on the theme for the instagram_url?
Thanks in advance.
Sorry, that’s getting really specific and custom, and is not really the help I provide here (which aims to be more specific to the plugin itself). If anyone else is willing to provide some tips here, that’d be great though for reference.