EngageWeb
Forum Replies Created
-
Forum: Plugins
In reply to: [Multiple Themes] Multiple Themes not working with WP 6.4.1Thanks for sharing that update.
Thanks khalidsafir – your feedback has made my day 🙂
Forum: Plugins
In reply to: [Social] Programmatically added postsWorked perfectly.
You are a Gentleman and a Scholar.Thanks
Much appreciated. I stuck with the twenty eleven theme to test to make sure it wasnt theme related, the problem seemed to occur when I used a template created by myself that contained the loop. Moving files over to the “events” folder and editing those seemed to resolve the issue.
It seems that it was related to using a custom template file rather than using the ones contained in events. when the loop is used to output the event rather than your custom method.
I would mark this as resolved as it was purely down to my tinkering than any fundemental error in your code, I would just warn against mixing in the loop with your event posts as it seems on some occasions they dont get along 🙂
Thanks again for a fantastic plugin, has been hugely useful and remains on my list of must haves.
Forum: Networking WordPress
In reply to: Default settings beyond known plugins capabilitiessolved.
after huge amounts of tinkering and research. added this to my functions.phpfunction my_default_pages($blog_id, $user_id){ switch_to_blog($blog_id); $my_post = array(); $my_post['post_title'] = 'New Default Page'; $my_post['post_content'] = 'This is my page.'; $my_post['post_status'] = 'publish'; $my_post['post_type'] = 'page'; $result = wp_insert_post( $my_post ); update_option( 'page_on_front', $result ); update_option( 'show_on_front', 'page' ); restore_current_blog(); } add_action('wpmu_new_blog', 'my_default_pages', 100, 2 );Forum: Networking WordPress
In reply to: Default settings beyond known plugins capabilitiesNo, that does not have the required functions I specified.
I dont believe there is a plugin to achieve what I am looking for so its likely a scripted route of functions.php may be the way to go, I know it was mentioned somewhere that the static homepage setting is achievable through functions and I would assume that there is a hook to tie in to when the new blog is created to remove/replace the sample page with 2 others.