• Resolved mcnaden

    (@mcnaden)


    We use a widget to display Featured Images and link to post’s in the side bar. Now we would like to add another set of Featured Images with the same widget but have them link to a page URL, not the individual post URLs.

    I have the custom field “externalurl” set up but I need to edit the widget PHP so it will link to the “externalurl”, if it is set, instead of the permalink.

    I found three references to the permalink in the widget PHP.

    <?php the_permalink(); ?>

    What do I change this to in each case so it will take the “externalurl” if it is set? Can anyone assist?

  • The topic ‘Set a custom external link for featured images in sidebar widget posts’ is closed to new replies.