Forum Replies Created

Viewing 4 replies - 76 through 79 (of 79 total)
  • Thread Starter elainewildash

    (@elainewildash)

    Is there any way to turn off the linked from?

    Thread Starter elainewildash

    (@elainewildash)

    Hi Casey,

    So adding

    <?php
    function my_connection_types() {
        p2p_register_connection_type( array(
            'name' => 'pages_to_pages',
            'from' => 'page',
            'to' => 'page'
        ) );
    }
    add_action( 'p2p_init', 'my_connection_types' );
    ?>

    to the functions.php file show show “Connected Pages (to)” and “Connected Pages (from)” meta boxes in my edit pages admin and when I add a “to” fro page 1 to page 2 —- page 2 shouldn’t show a link back to page 1 by default. It’s only if I add ‘reciprocal’ => true that page 2 should link back to page 1?

    Thread Starter elainewildash

    (@elainewildash)

    Hi Casey,

    Thanks for your help.

    I’ve setup the code above and have the links added via “Connected Pages (to)” appearing in sidebar.

    What I’m looking for the plugin to do (if possible) is to only add a link one way e.g. say I have Page 1 and I want to link to Page 2 using the Plugin (so on Page 1 I add Page 2 via “Connected Pages (to)” – I only want the link to Page 2 to show on Page 1 i.e. if I then go to Page 2 I don’t want it to link back to Page 1. At the moment the Plugin automatically adds a link from page 2 to Page 1

    Is it possible to setup the plugin so it only adds the link one way i.e. not reciprocal?

    Thread Starter elainewildash

    (@elainewildash)

    Thanks for responding so fast.

    If it is either one of The theme may not be using wp_list_pages() to list the page titles at the top of your page or it may be calling the_loop() early and not resetting it, is there anything I can do?

Viewing 4 replies - 76 through 79 (of 79 total)