Page Links To
How to add the target in an echo? (1 post)

  1. cwulff
    Posted 4 years ago #

    Hi Mark,

    Thanks for this fantastic plugin. I use it all over the place and it's a godsend.

    I'm using the following to get a list of links after using the Advanced Custom Fields Post Object field:

    <h4><a href="<?php echo get_permalink($post_object->ID); ?>"><?php echo get_the_title($post_object->ID); ?></a></h4>

    Works great for the list and links but the problem is that the code doesn't allow the new permalink produced by the Page Links To plugin to open in a new tab/window (which is one of my favourite things about this plugin) when that option is selected.

    How would I go about fixing this?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Page Links To
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic