Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #493954

    Hi!

    I would like to add the Page Attributes to single posts. So that i can set a single post (Event from WordPress Event Manager in this case) to a BLANK page/post.

    Tnx!

    • This topic was modified 9 years, 2 months ago by c3computers.
    #494115

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    function wpcodex_add_excerpt_support_for_pages() {
    	add_post_type_support( 'post', 'page-attributes' );
    }
    add_action( 'init', 'wpcodex_add_excerpt_support_for_pages' );

    Cheers!
    Josue

    #496319

    Hi nothing happens?

    this is the link when i try to add a new event:

    http://inschrijven.platformdenp.nl/wp-admin/post-new.php?post_type=event

    Post type = event, so ive tried to change

    function wpcodex_add_excerpt_support_for_pages() {
    	add_post_type_support( 'post', 'page-attributes' );
    }
    add_action( 'init', 'wpcodex_add_excerpt_support_for_pages' );

    to:

    function wpcodex_add_excerpt_support_for_pages() {
    	add_post_type_support( 'events', 'page-attributes' );
    }
    add_action( 'init', 'wpcodex_add_excerpt_support_for_pages' );

    But no effect :)

    #496322

    Hi i found a solution!

    Plugin im using:
    https://wordpress.org/plugins/events-manager/

    In the settings i found this option :) so im happy
    http://inschrijven.platformdenp.nl/wp-content/uploads/2015/09/fix.jpg
    Fix

    • This reply was modified 9 years, 2 months ago by c3computers.
    #496697

    Hi!

    Glad you figured it out and thank you for sharing your solution :)

    Best regards,
    Yigit

    #572752

    Topic can be closed.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Page Attributes’ is closed to new replies.