Mindshare Labs, Inc.
Forum Replies Created
-
Forum: Plugins
In reply to: Get tags outside the loopHere’s one way to do it:
http://www.jek2k.com/wp/index.php/2006/10/30/wordpress-displaying-content-outside-the-loop/And another:
http://codex.wordpress.org/Template_Tags/get_postsForum: Fixing WordPress
In reply to: using the wp_insert_post commandJj23 – Thanks for the code. Very useful. Do you know by any chance where I can fin a complete list of parameters for the wp_insert_post function?
I looked on this page http://codex.wordpress.org/Function_Reference/wp_insert_post I noticed that your code has extra parameters not listed there like “feeds”.
This topic covers how to get the post count for a category if anyone is looking for that also:
Forum: Fixing WordPress
In reply to: Counting posts within categoriesHey! Thanks for the code… this is just what I was looking for.
Forum: Plugins
In reply to: wp-chgfontsize not reading cookieThe issue is not with my theme CSS or plugins… I disabled everything and completely deleted all the CSS and it still is not functioning properly. I’m totally stumped.
Forum: Plugins
In reply to: [Plugin: Flexible Upload] Not compatible with WordPress 2.6?Very nice. thanks.
Forum: Plugins
In reply to: [Plugin: Flexible Upload] Not compatible with WordPress 2.6?Thanks Das3Zehn!
Just one thing… it would work better if your zip included ther ‘flexible-upload’ folder as well (so you could use scripts like Plugin Central to install it).
Forum: Fixing WordPress
In reply to: Categories within search…saganaki – just saw this post. you should probably hire someone to do that for you. 😉
Forum: Plugins
In reply to: Adminimize ErrorThanks! This seems to only happen under PHP 4.
Forum: Plugins
In reply to: [Plugin: Adminimize] How do you change the language to English?Just make sure that your wp-config.php file is set up to use ‘en_US’ as the default language and the plugin will display in English.
Forum: Plugins
In reply to: Plugin SVN ErrorI’m having a different SVN error trying to nupdate my plugin:
Commit failed (details follow): OPTIONS of 'http://svn.wp-plugins.org/barack-obama-sidebar-widget/trunk': Could not resolve hostname 'svn.wp-plugins.org': The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. (http://svn.wp-plugins.org)Any ideas?
Forum: Plugins
In reply to: [Plugin: Ozh’ Admin Drop Down Menu] hide / change menu items?Thanks onewalrus but the Ozh plugin is for the admin menu not a menu on the site (i.e. not in your theme). So I don;t think this plugin would help (assuming that’s what you were talking about since you didn’t link):
http://wordpress.org/extend/plugins/ryans-suckerfish-wordpress-dropdown-menu/
Forum: Fixing WordPress
In reply to: Categories within search…If you want to search only the current category (and exclude results from pages, showing posts only) you need to edit the following files in your theme:
First, edit the search.php file. Just above the loop paste the following code:
<?php if ($_GET['cat'] != '') { $posts = query_posts($query_string . '&post_type=post'); // return only posts } else { $posts = query_posts($query_string . '&post_type=page'); // return only posts } ?>Next you need to modify your search form to search only the current category. Replace the default form with:
<?php $category = get_the_category(); ?> <form method="get" id="jobsearch" action="<?php bloginfo('home'); ?>/"> <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" /> <input type="hidden" name="cat" value="<?php echo $category[0]->cat_ID; ?>" /> <input type="submit" id="jobsubmit" value="Search Jobs" /> </div> </form>That should do it.
Forum: Fixing WordPress
In reply to: How to Search Specific Categories?Ok… I got it. See solution here:
http://wordpress.org/support/topic/173575Forum: Fixing WordPress
In reply to: How to Search Specific Categories?