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!
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
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 :)
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
Hi!
Glad you figured it out and thank you for sharing your solution :)
Best regards,
Yigit
Topic can be closed.