function exclude_category( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'cat', '-1942, -1943' );
}
}
add_action( 'pre_get_posts', 'exclude_category' );
any help with the direct issue or/and how i find out the correct query is much appreciated
]]>When i activate multisite, my existing blog will always be the main site. I tried to create a new sub-blog and tried to switch the main and the subblog but i didn’t find a way to do so.
The Site edition-essentials.com should become bar.edition-essentials.com and a new site should be created on edition-essentials.com
Any Idea?
]]>Please define and compare each. For example how is the main site related to a sub-blog and how is a sub-blog related to a sub-site?
When enabled, you have further options available to you for modifying the way Events and Locations are shared.
Global Event Options
Display global events on main blog?
Displays events from all sites on the network by default. You can still restrict events by blog using shortcodes and template tags coupled with the blog search attribute.
Link sub-site events directly to sub-site?
When displaying global events on the main site you have the option of users viewing the event details on the main site or always direct them to the sub-site. If you select ‘No’, then a duplicate events page will be created and attached to your Events Page (must be enabled on your main blog for this to work). So for example, if your events page is mysite.com/my-events/, then a sub-site event might be mysite.com/my-events/event/a-subsite-event/, yet main site events will still have the format of mysite.com/events/main-site-event/
This is important if you expect users to have separate gateway information such as paypal addresses on their sub-site, if so you should enable this, so that booking payments aren’t made to the main blog gateway accounts (more interoperability with PayPal and sub-sites is planned for the near future).
Global event slug
If you have chosen to display sub-site events on your main blog, you can modify the slug appended to your events page, so instead of mysite.com/courses/event/a-subsite-event/, you could modify this and have it be mysite.com/courses/course/a-subsite-event/
Global Location Options
Locations on main blog?
If you would prefer all your locations to belong to your main blog, users in sub-sites will still be able to create locations, but the actual locations are created and reside in the main blog. This means that the actual WordPress post object will belong to the main blog, and a slightly different interface will be shown in the admin area (similar to the public location forms or those used with BuddyPress). Subsequent options will not be considered if this is chosen
https://www.ads-software.com/plugins/events-manager/
]]>WordPress 3.5.2
PHP 5.3.26
MySQL 5.5.31
Nginx 1.4.1
2. problem:
-2.1. I install wordpress mutisite with sub-folder, main site (abc.com) work fine, also can add new sub-blog (abc.com/subBlog), but sub-blog has no theme (single post and main), and could not link to admin dashboard (abc.com/subBlog/wp-admin), infinite redirect loop happened! (302)
-2.2. go to add new post (abc.com/subBlog/wp-admin/post-new.php) will return 404 not found.
3. already do:
-3.1. add folder “blog.dir” on /wp-content/
-3.2. change .htaccess to boilerplate (like this)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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>
but entire directory still not showing on location “blog.dir”,all problem still happen! any ideas?
]]>Here’s the problem:
One website with public content.
The same site needs to have a login and then when users are logged-in they are shown more pages, and have access to a blog area where they can update content.
The hidden content shouldn’t be indexed on google.
What would be the best approach?
Thanks!
Example: https://nottsforestsoccer.com/boys1993a
Click on the title of the news item below the large photo. It shows the 404 page template.
]]>My sub-blog is https://sabbathissues.org/ installed in a sub-directory. Everything seems to work fine EXCEPT links to the main blot.
On the main site there is an article
https://ssnet.org/blog/2012/01/the-samoan-sabbath-dilemma/
A link from https://sabbathissues.org/2012/02/hello-world/
to https://ssnet.org/blog/2012/01/the-samoan-sabbath-dilemma/
does not work, but goes to
https://sabbathissues.org/blog/2012/01/the-samoan-sabbath-dilemma/
which, understandably, yields a page not found error.
Not only that, but a link to the home page to the main blog also does not work.
I’m at a total loss.
Please help!
]]>Her Confessions, Photography, Homeschooling, etc Pages are all blogs.
How do I install an additional blog on one of my Pages?
Thanks so much!
https://AngelaDiGiovanni.com/
I’m new to WP and am currently looking for some sort of a multi blog calendar. The default calendar lists all posts of one blog. I would like it to list all posts from all (or user defined) sub-blogs. Is there something like this?
best,
Jan
Does anyone know of a good plugin that allows users to setup their own analytics account or some other type of stats on their blog? I am currently using GA to track across all domains but I don’t care what type of stats sub-blogs have.
I can’t seem to find a plugin that works and allows for this on sub-blogs.
]]>