eagerness
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Flutter: WordPress CMS Plugin] Image upload not workingI got the same problems. Thought it may be because the ordinary flash uploader wasnt working. Fixed that, still no go.
Forum: Plugins
In reply to: [Plugin: Relevanssi] Limit search to certain pages / subpages ?Hah ?? That’s OK, chuck it over ??
Forum: Plugins
In reply to: [Plugin: Relevanssi] Limit search to certain pages / subpages ?This is also the exact thing I’m looking for! ?? Is it possible for another copy to post (at) terjeandersen (dot) net ?
Forum: Themes and Templates
In reply to: is_template tagThanks for a quick reply ??
However, I realise that this doesent solve my problem entirely.
I have three domains connected to my wordpress, each serving different content and design/layout depending on which URL you visit. This works fine, until i for example visit domain1.net and want to use the wordpress search. The search result brings up pages and posts linked to the other two domains.
I took a peak at this tutorial: https://web-kreation.com/index.php/wordpress/wordpress-exclude-pages-from-search-results/ – This guy chooses which categories that are going to be included in the search.
Based on that, i guess my code would go something in the direction of this:
function mySearchPostsFilter($query) { if (strstr($_SERVER['HTTP_HOST'], "domain1.net") ) and ($query->is_search) { $query->set (pages with the domain1-template and category 1,2,3) } elseif (strstr($_SERVER['HTTP_HOST'], "domain2.net") ) and ($query->is_search) { $query->set (pages with the domain2-template and category 3,4,5) } elseif (strstr($_SERVER['HTTP_HOST'], "domain3.net") ) and ($query->is_search) { $query->set (pages with the domain2-template and category 4,5,6) } return $query; } add_filter('pre_get_posts','mySearchPostsFilter');
(If the domain im using the search with is this, then include this page template and these categories)
Again, thanks! ??
Forum: Plugins
In reply to: Different front page with Domain Mirror or Domain ThemeHello again! I should have edited my previous reply, but im not able to ??
After pulling my hair for a few hours Ive come up with a solution:Navigate to index.php in your templates directory edit it (or make a home.php and edit that one)
In the file, put in:
<?php
if (strstr($_SERVER[‘HTTP_HOST’], “domain”)) {
query_posts(‘page_id=4233’); }
?>If the check is true, a certain page id is presented, if not its all standard.
Forum: Plugins
In reply to: Different front page with Domain Mirror or Domain ThemeIm bumping this one as i have the same problem. Anybody?