• Resolved slimmilkduds

    (@slimmilkduds)


    Hi (again)!

    I would like to override whatever display option the user chooses and always set display=”nameOfTemplate.php” in the shortcode. I figure this should be pretty simple to edit in the source code but I’m not much of a php / java guy so I still managed to get stuck.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Paul Ryan

    (@figureone)

    I just released version 3.2.7 which includes a new filter to do this. Here’s an example (place this in functions.php in your theme, or wherever you have your hooks and filters):

    // Override all inserted pages with a custom display.
    function my_override_display( $display ) {
    	return 'nameOfTemplate.php';
    }
    add_filter( 'insert_pages_override_display', 'my_override_display' );
    Thread Starter slimmilkduds

    (@slimmilkduds)

    Sweet, worked like a charm! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Override display option’ is closed to new replies.