Forum Replies Created
-
AuthorPosts
-
May 7, 2018 at 3:59 am in reply to: Problem with post type on subsites in multisite network #1524101
gavlekommun
ParticipantHi again!
We have already done this, we even tried on a clean install with same result. Are you doing it on a subfolder multisite install?
Regards Joakim Silfverberg
April 19, 2018 at 12:41 am in reply to: Problem with post type on subsites in multisite network #1510893gavlekommun
ParticipantYeah all constants should be there, any in particular you’re thinking about? We dont have this problem with any other plugin or page.
Yeah this is my localhost, thats because we dont use HTACCESS on the server. But still its the same problem locally.
URL MAIN – https://www.gavle.se/event/demo-aterkommande-event/2018-04-04/
URL SUB – https://www.gavle.se/demo/event/test-av-evenemang/The double toolbar on the subsite is caused by the wrong page template being loaded, caused by the post type being page initially.
I have validated all the licenses.
Thank you!
April 18, 2018 at 12:19 am in reply to: Problem with post type on subsites in multisite network #1509874gavlekommun
ParticipantThis is my htaccess config. Slugs in image.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPressApril 16, 2018 at 2:16 am in reply to: Problem with post type on subsites in multisite network #1507887gavlekommun
ParticipantYes, our .htaccess is configured as descriped in the codex. The single event has never worked on our subsite as far as i know, it doesn’t work with twenty twelve without any other plugins either.
April 12, 2018 at 12:04 am in reply to: Problem with post type on subsites in multisite network #1505131gavlekommun
ParticipantOkey, it uses subfolders.
-
This reply was modified 8 years ago by
gavlekommun.
April 11, 2018 at 6:13 am in reply to: Problem with post type on subsites in multisite network #1504194gavlekommun
ParticipantHi!
Now i’ve shared the system info. No customization at all, it’s the default single event that doesn’t work properly on subsites. When i load a single event on a subsite it loads the “page” template because the post type is incorrect when the page loads. This doens’t happen on our main site.
Regards Joakim Silfverberg
gavlekommun
ParticipantThank you very much 🙂
February 8, 2018 at 1:21 am in reply to: tribe_event_list shortcode with category show events in child categories #1447318gavlekommun
ParticipantI solved the problem by “hooking” into the query of the shortcode and set ‘include_children’ => 0. I know it is the expected behavior but i still think this should be a option in the shortcode. Something in the line of “include_cat_children”.
My code –>
/**
* Excludes child categories in eventcalendar shortcode list.
*/
function exclude_child_categories_in_events( $query ) {
try {
if( array_key_exists(‘eventDisplay’, $query->query ) && $query->query[‘eventDisplay’] == ‘list’ ) {
$query->query_vars[‘tax_query’][0][‘include_children’] = 0;
}
} catch( Exception $e ) {
// Do nothing.
}
}
add_action( ‘pre_get_posts’, ‘exclude_child_categories_in_events’ );February 6, 2018 at 11:57 pm in reply to: tribe_event_list shortcode with category show events in child categories #1445977gavlekommun
ParticipantYes exactly. The shortcode im using is –> [tribe_events_list category=”tickets-available”]
-
This reply was modified 8 years ago by
-
AuthorPosts
