ProductAnatomy
Forum Replies Created
-
Forum: Plugins
In reply to: Custom Taxonomy Dropdown search URLsWell the searching within a custom post type is relatively easy.
I just used a code similar to the following code for my news post type (replace ‘news’ with the name of you custom post type:
function search_filter() { global $blog_id; if (is_post_type_archive ( 'news' ) || is_singular( 'news' )) {?> <li class="nav_search"><form method="get" class="search_form" action="<?php bloginfo('home'); ?>/"> <p> <input class="text_input" type="text" value="" name="s" id="s"/> <input type="hidden" name="post_type" value="news" /> </p> </form></li> <?php } } add_action('$tag','search_filter');
For the first part of my original question I believe there are a couple of ways to do this. Firstly you could use custom rewrite rules to rewrite the urls once they’ve been searched for – switching them from domain.com/?TERM=term1 to domain.com/taxonomyname/term1 (I’m not too familiar with rewrite rules I’m afraid).
The second option is a little easier and would be to create the custom taxonomy with the archive slug as you would like them – domain.com/taxonomyname/term1 (set the slug to ‘taxonomyname’ when creating the taxonomy). Now when you search using the drop down, WordPress should automatically rewrite the urls to domain.com/taxonomyname/term1.
Hope this helps
Also looking for this if anyone has found a solution?
Thanks
Forum: Networking WordPress
In reply to: Multi-site admin bar search returning bad urlsJust realized that the search result for the admin bar search is slightly different than the widget search if this helps to decipher the issue at all:
Admin Bar search example: (sub site/blog on network is called UK)
Page 1 example – https://domain.com/uk?s=test
Page 2 example (not working) – https://domain.com/uk/uk/page/2/?s=testWidget search example:
Page 1 example – https://domain.com/uk/?s=test
Page 2 example (not working) – https://domain.com/uk/page/2/?s=testForum: Networking WordPress
In reply to: Multi-site admin bar search returning bad urlsI’m also having this exact problem with pagination not working for searches made using the admin bar on a multisite subfolder setup.
I have one network using subdomains and the admin bar search and pagination work fine, but on a new network I am setting up I am using subfolders and although page one of the search results returns the correct results, the pagination for pages 2 onwards keep duplicating the blog URL as per the example given above.
If I add a search box widget the search results and pagination work fine.
Has anybody managed to find a solution to this?
Forum: Plugins
In reply to: [GD Custom Posts And Taxonomies Tools] Widget – Post Type SelectionThanks Milan – this looks absolutely perfect for what I need!
Forum: Plugins
In reply to: [GD Custom Posts And Taxonomies Tools] Widget – Post Type SelectionHi Milan,
Sounds like the Pro version should do what I need, but I can’t really see on the features page you provided – the small screenshot looks like the lite version.
Would you be able to provide a screenshot of the “Terms List” widget options/settings on the Pro version please?
Thanks.
Forum: Networking WordPress
In reply to: Server owner permissions for multisiteHi c3mdigital,
Second option actually appears to be working…I’ve basically set the main install to a new user chown -R newuser:newuser and then chowned the uploads and blogs.dir folders to www-data:www-data
Once I’ve figured everything out I’m going to completely reinstall and upgrade onto debian 6 too as suggested – thanks for the link to that tutorial though – might come in handy as my host doesn’t offer debian 6 yet! ??
Forum: Networking WordPress
In reply to: Server owner permissions for multisiteThanks both for your replies.
So really i’m better with one of the following 2 options:
1 – Leaving the entire WordPress install as chown www-data:www-data
Or
2 – Creating a new user in debian (rob) and setting this user as owner for the wordpress folder. Then chown the uploads, blogs.dir, themes, and plugins folders to www-data:www-data (using chown www-data:www-data for the entire installation only when upgrading)
Which one of these would be most suitable?
Thanks
Rob