Hi,
I have a question, how i make a search onto post type : Pages and other post type, at this moment, only result from blog
Thanks for your idea.
]]>Hi. I want to show results with custom div id. while i tried, i saw that the permalink is working but the post thumbnail is not working. can you tell me what i need to get the post thumbnail in result page. here is my code
<div class="single_category_inner">
<ul class="catg_nav">
<li><div class="catgimg_container"> <a class="catg1_img" href="<?php echo get_blog_permalink( $s->blog_id, $s->ID ); ?>" title="<?php echo $s->post_title ?>">
<?php if ( has_post_thumbnail( $s->blog_id, $s->ID ) ) { ?> <?php the_post_thumbnail( $s->blog_id, $s->ID ); ?> <?php } ?> </a></div><a class="catg_title" href="<?php echo get_blog_permalink( $s->blog_id, $s->ID ); ?>"> <?php echo $s->post_title ?></a>
</li></ul></div>
]]>
While I am aware that editing a plugin can be dangerous, because your edits can be wiped out in updates, here’s an answer to a question I saw (and had myself) without any answers …
How do I exclude some sites on my network?
Go to shortcodes.php
Find the following line. It should appear four times.
if(( $blogid != $s->blog_id ) && ( $s->post_title != $SearchPageTitle ))
Replace this line with:
if(( $blogid != $s->blog_id ) && (( $s->blog_id != ‘9’ ) && ( $s->blog_id != ’14’ )) && ( $s->post_title != $SearchPageTitle ))
This will exclude blogs 9 and 14
(( $s->blog_id != ‘9’ ) && ( $s->blog_id != ’14’ ))
Inside the outer parenthesis, add one of these for each blog you’ll exclude:
( $s->blog_id != ’14’ )
Replacing the 14 with the blog_id you want to exclude. Remember to place && between each of them.
WordPress 4.7.4. Multisite Global Search Version 1.2.14. I have 2 WordPress sites, and I’m not sure which site is the “main site”.
I installed this plug-in as the Network Admin in site #2 and “activated” it in the Plugin mennu (displayed in network/plugins.php). This plugin is also available (listed as “Network Active”) in site #1’s WordPress Plugin menu (displayed in plugin.php).
I created a “globalsearch” page in both site #1 and site #2, which contained only the default string “[multisite_search_result]”.
I added the Global Search widget to a sidebar in site #1, and to a sidebar in site #2. I want to search for a text string that is located only in a post on site #2.
When I use the Global Search widget on the sidebar in site #2, the search FINDS the post correctly! This is great.
But when I use the Global Search widget on the sidebar in site #1 to search for the string that is located only in a post in site #2, the search does NOT find the the post in site #1.
In other words, how do I make the Global Search Widget located on a page on site #1 to search for the text string that is located in a post in site #2?
Please provide me specific instructions for exactly what I need to change. Where do I make the necessary corrections? Or can you give me a link/URL that describes the necessary corrections?
Thank you.
]]>Sorry, update doesn’t work. Using old version of shortcodes.php brings results back. Bug?
]]>Upgrading the great plugin multisite global search from 1.2.12 to 1.2.14 leads to NO SEARCH RESULTS at all. Using the old version of inc/shortcodes.php brings all search results as before. There are no private posts.
]]>Hi. I’m echoing do_shortcode() to display the multisite search form in the header of my site. I’ve also created a custom page template and added the multisite results shortcode to the content editor. The form displays, the query is processed and the page goes to the right results template I created, but no results are ever displayed. What gives?
https://www.ads-software.com/plugins/multisite-global-search/
]]>It just says that the network is not enabled. But it is…
https://www.ads-software.com/plugins/multisite-global-search/
]]>We need to use this plugin for implementing a finnish blog. So search should work in finnish language. How can that be enabled?
https://www.ads-software.com/plugins/multisite-global-search/
]]>Good Day,
Is there an option to change the form span: Search across all blogs without affecting future updates?
I am using a child theme. Please advise and thank you in advance!
https://www.ads-software.com/plugins/multisite-global-search/
]]>The plugin generated 1056 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
latest wordpress multisite.
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hi, I have just installed Multisite Global Search, but it doesn’t seem to search any of the sites, including site on which its installed. You can see the result – or lack of – here:
Not found
Sorry, but you are looking for something that isn’t here.
Any idea what could be causing this?
Thanks in advance
Dave
https://www.ads-software.com/plugins/multisite-global-search/
]]>When ever i search for a string “test”
at the following path:
https://www.healthiiers.com/index.php/globalsearch/
here when click on search you will get a error but putting “index.php” will show the results
i only get following results:(for results click below link as the above link isn’t working when searched)
https://www.healthiiers.com/index.php/multisite-search/?mssearch=test
Here you can see the only posts listed under discussions which is another
https://www.healthiiers.com/discussions/
Not from the “experts corner” which is one blog
https://www.healthiiers.com/index.php/experts-corner/
I have hosted this on windows server so had many problem like we have index.php inside the path so how i can add index.php and search on both the sites.
Can anybody help?
https://www.ads-software.com/plugins/multisite-global-search/
]]>I have a multisite install at WP Engine with the plugin installed and Network Activated. The problem is this: any search returns “Not found”. Using the Staging Area with errors turned on, I found this error: “Warning: Missing argument 2 for wpdb::prepare(), called in /path/path/path/staging/tiemcenter/wp-content/plugins/multisite-global-search/inc/shortcodes.php on line 223 and defined in /path/path/path/staging/tiemcenter/wp-includes/wp-db.php on line 1209”
Is the error relevant? Or is there another problem causing nothing to be found? Thanks!
https://www.ads-software.com/plugins/multisite-global-search/
]]>Does the plugin allow to specify which blogs to include in the search or exclude from the search?
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hello,
Is there any support still for this plugin? or is it dead? I can’t get anything to show up, it always says Nothing found.
Thanks,
https://www.ads-software.com/plugins/multisite-global-search/
]]>How can I contribute to plugin code?
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hola muy buenas,
me gustaría saber si es posible usar el plugin sin necesidad de usarlo como widget, ya que estos los tengo inhabilitados para mis páginas.
Lo he intentado con el código:
Multisite_Global_Search::ms_global_search_vertical_form(your_results_page)
pero no ha funcionado.
Como deberia implementarlo a mi código. Actualmente dispongo de lo siguiente:
]]><form method=”get” id=”searchform” action=”<?php echo home_url(); ?>”>
<input type=”text” name=”s” class=”desktop” id=”s” value=”<?php echo __(‘Suche’); ?>” onblur=”if (this.value == ”) { this.value = ‘<?php echo __(‘Suche’); ?>’; }” onfocus=”if (this.value == ‘<?php echo __(‘Suche’); ?>’) { this.value = ”; }”><input style=”display:none;” type=”submit” id=”searchsubmit” value=”Go”>
</form>
UpdraftPlus seems to be getting stuck when trying to read the table ‘…_v_postmeta’ when trying to perform back-up causing the back-up to fail.
https://www.ads-software.com/plugins/multisite-global-search/
]]>I added this to a site where I have about 100 users.
After half of the users registered, I decided by default to make the sites not indexable by search engines To do this i edited /wp-admin/install.php line 80 to $blog_public = 0; so the blogs are not public by default on install, and I also changed /wp-signup.php on line 124 so that the default for “Do you want this site ot be indexed by search engines” is “No” checked by default instead of “yes”.
Now, only some sites show up in the global search and some do not. When I edit each site alone, I can set them all to have the same kinds of permalinks, and I’ve even gone back and checked them as being “public” but for some reason, only certain ones show up in the searches and I can’t figure it out for the life of me.
Any advice would be greatly appreciated!
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hi,
First of all thanks for this great plugin, it made really easy to provide a global search to our site.
I tend to run always with debug on which resulted in some warnings so I fixed them.
Also I needed to search custom post types, change the order of the results and provide a custom screen to show them.
To make all this possible I made some modifications which I shared on a pull request on this repo mirror: https://github.com/wp-plugins/multisite-global-search/pull/1
Hope it helps and if you want me to fix/change something so you can incorporate it just contact me.
Thanks,
Guillermo
https://www.ads-software.com/plugins/multisite-global-search/
]]>The search on the home page and in the widget does not always display search results – but rather a blank page. Occasionally search results will display. For example – we have many “candle” posts – but search results do not display (in IE or Firefox) – just a blank page. We also have many “petoskey” posts and those do not appear in a search – just a blank page. However if I type the words purse hanger into the search box, the results page will display the related post.
The short code [multisite_search_result] is on the Globalsearch page. And the global search widget is in the right sidebar.
https://michigan-made.com/
Or https://michigan-made.com/shop/ is where the right sidebar widget can viewed.
Can you explain what I need to do to make results appear on the page and not a blank page?
https://www.ads-software.com/plugins/multisite-global-search/
]]>I’m using this search as the main search for my multisite, how do I disable the search options when using the template code:
<?php Multisite_Global_Search::ms_global_search_horizontal_form('search-results') ?>
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hi @aliciagh.
First, thank you.
I won’t use your plugin as it is right now but it will be a very useful basis to me for a quite similar need (I only need specific post types and post metas, not only for search but also displaying posts on the front page). Also thank you because I wasn’t aware of VIEW in sql, it seems to be a good solution for the performance problem of this case.
Maybe I’m wrong, but here is something that can cause troubles imho:
In your function ms_global_search_init()
you use the actions wpmu_new_blog
, delete_blog
, archive_blog
, etc. While digging into wp-includes/ms-blogs.php => update_blog_status()
I see there are more available actions not listed in your function: make_spam_blog
, make_ham_blog
, mature_blog
, unmature_blog
, etc. Shouldn’t they be used to update your VIEW?
A simple (and maybe stupid) though: in your shortcode you use get_blog_permalink()
, and it uses switch_to_blog()
, which seems to add many things in cache. Wouldn’t that be an issue? I mean, as far as I understand, VIEW allow us to reduce the number of requests to the database and the cache size, so, wouldn’t that be counter-productive to use switch_to_blog()
?
Thanks again ??
Greg
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hello,
Thanks for a great plugin. Would you please explain how to exclude specific pages in the search result? I do not want to exclude all pages, just a couple. I’ve tried modfying some of the code posted for the standard WP search tool with no success. Any help would be greatly appreciated. Thank you in advance.
Josh
https://www.ads-software.com/plugins/multisite-global-search/
]]>hello everyone — i will like for some one to help me out find the right plugin . the global search does not work — gives errors- compatibility
using 3.8 WPMU— i will like to search for a specific field or attribute that is found withing a course page, field title (course ID)..
1. would it be possible to search for a specific field or fields in a multisite ?
2. if yes –how can I achieve this — were do i have to go or what do i have to do, how do i do it?
3. is there other plugin that can search for multiple databases– or multiple WPMU ?
many thanks in advance
https://www.ads-software.com/plugins/multisite-global-search/
]]>I’ve hacked it together to work for my purposes using
https://www.htmlcenter.com/blog/wordpress-multi-site-get-a-featured-image-from-another-blog/
and some changes…. Would you be interested in me making a branch you could look over what I’ve done?
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hi,
I try to replace the green search button in the top right corner of theme “Twenty Fourteen” with your php code from the faqs:
<?php Multisite_Global_Search::ms_global_search_horizontal_form(‘busqueda’) ?>
Now I’d like to know how to activate “search on pages” as standard and how to hide the search options (because we only have pages and no posts and the search should always be over all blogs/pages).
Another question is: if I place the global search as a widget on a network site only the pages of this network site are found… Does every network page has to have it’s own global search page?
Thanks in advance for reading and answering.
https://www.ads-software.com/plugins/multisite-global-search/
]]>Good morning and Happy New Year, I found this plugin and it is great for what I need it for. The only problem is using the DeTube theme the results and even the search bar shows up twice. Here is an example test page that I have created.
https://stepinthenameoflife.org/network-search/test-page/
I have gone through the code and can’t see where it is sending the form twice.
I have been killing myself for the last 2 days trying to figure this out. PLEASE HELP ME figure this out.
Thanks
https://www.ads-software.com/plugins/multisite-global-search/
]]>Hi guys… is there any easy way to modify it to also query post tags? My network relies heavily on a custom post type (comic) with no real text content, so being able to search by tags would be awesome.
Thanks!
https://www.ads-software.com/plugins/multisite-global-search/
]]>