• Resolved hernanrivera

    (@hernanrivera)


    Hi!
    There are two steps to go from the post in my website to the instagram page.
    Meaning, if I click on the post I got tho the single post page, and then if I click in the image again I get to the instagram website.
    I was wondering if the is a CSS to avoid the pots single page step and just get directly
    to the Instagram page?
    This is my website in case you want to check it out
    https://www.nostalgic.cl
    Many thanks.
    Best,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Beau Lebens

    (@beaulebens)

    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).

    Thread Starter hernanrivera

    (@hernanrivera)

    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.

    Plugin Author Beau Lebens

    (@beaulebens)

    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.

    Thread Starter hernanrivera

    (@hernanrivera)

    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.

    Plugin Author Beau Lebens

    (@beaulebens)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link Back to the Instagram Website’ is closed to new replies.