Forum Replies Created

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter Cerebral ideas

    (@cerebral-ideas)

    Okay, I discovered the problem. It was my theme that caused the plugin to not work. I have absolutely no clue why the theme is breaking the plugin, but it is … more to come.

    Forum: Plugins
    In reply to: Custom Post Type Search Bar

    Just in case anyone is looking for a way to create a search form that provides selectable drop-down list of their custom post types, here is what worked for me:

    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    	<input type="text" name="s" id="s" value="Enter keywords ..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/><br />
    	<select name="post_type">
    		<option value="">Choose Category:</option>
    		<option value="">All Categories</option>
    		<option value="post_type_a">Post Type A</option>
    		<option value="post_type_b">Post Type B</option>
    		 <option value="post_type_c">Post Type C</option>
    	</select><br />
    	<input type="submit" id="searchsubmit" value="Search Help" />
    </form>

    Obviously, replace post_type_a with your unique post type name and Post Type A with your post type label. Good luck!

    Justin

    Just in case anyone is looking for a way to create a search form that provides selectable drop-down list of their custom post types, here is what worked for me:

    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    	<input type="text" name="s" id="s" value="Enter keywords ..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/><br />
    	<select name="post_type">
    		<option value="">Choose Category:</option>
    		<option value="">All Categories</option>
    		<option value="post_type_a">Post Type A</option>
    		<option value="post_type_b">Post Type B</option>
    		 <option value="post_type_c">Post Type C</option>
    	</select><br />
    	<input type="submit" id="searchsubmit" value="Search Help" />
    </form>

    Obviously, replace post_type_a with your unique post type name and Post Type A with your post type label. Good luck!

    Justin
    https://www.cerebralideas.com

    Thread Starter Cerebral ideas

    (@cerebral-ideas)

    Andrea, good luck on your plugin and let me know when it is live. It is very needed. Thanks.

    Justin

    Thread Starter Cerebral ideas

    (@cerebral-ideas)

    Well, couldn’t get it to work. I couldn’t get the subsite’s files directory to follow the htaccess rules, so I had to utilize the root htaccess file. Here’s what I used in case anyone else would like to try:

    RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_YOURUNIQUESTRING.*$ [NC]
    RewriteCond %{REQUEST_URI} !^/wp-login.php$
    RewriteCond %{REQUEST_URI} !^/wp-admin/css/*.css*$
    RewriteCond %{REQUEST_URI} !^/wp-content/themes/YOURTHEME/style.css$
    RewriteRule .* YOURDOMAIN/wp-login.php [NC,L]

    It basically protects everything, so it’s not perfect, but if protecting your assets is important, then it works.

    Justin

    Thread Starter Cerebral ideas

    (@cerebral-ideas)

    Hey Curtis, thank you for the tip; I will try it out in a few hours and let you know how it works out. Thanks again.

    Andrea, I was hoping for a plugin from you guys on this one. I hope you all work it out soon as it would be a welcome for this and many projects. Thanks.

    Justin

    Hey Andrea, could you attempt to help me? I may be able to offer a little more information on this topic. I too am getting an ‘HTTP error’ when trying to upload media. It started immediately after I upgraded from WP 3.0.1 to 3.0.2.

    I can successfully upload using the HTML browser-uploader, but the Flash uploader fails constantly with the ‘HTTP error.’ What could be causing the Flash uploader to fail that is particular just to that function?

    Thanks in advance for any help.

    Justin

    It’s my fault. I am running a multisite setup and forgot to apply the settings for the custom post types on each sub-site separately. Thanks for replying Jonathan, sorry for the false alarm. Can’t wait to start playing with it now!

    Justin

    Me too. It does say in the description that it works with Custom Post Types, but it seems to work with everything but …

    Come on Jonathan, help us out, please ??

    Thread Starter Cerebral ideas

    (@cerebral-ideas)

    Hey Vikalp, we have not started production yet on this portion of development. The developers on my team feel it is very doable, but I will report back once it is done. Talk to you soon.

    Justin

    Thread Starter Cerebral ideas

    (@cerebral-ideas)

    Awesome, thank you Otto! We will look into this very soon. You’re a life-saver.

    Justin

    Thread Starter Cerebral ideas

    (@cerebral-ideas)

    Hey Otto, thank you very much for helping me out. You make it seem so easy ?? Would you happen to know if there is a plugin that already does this? I have seen a couple of plugins that deal with authentication, but I am never sure if they handle it in the manner in which I need it.

    If you don’t mind, I am going to keep this thread open. This will actually be a teammate of mine’s responsibility (I am a front-end developer, so this kind of programming gets over my head), and he might have to ask you a question if you wouldn’t mind.

    Thanks again for your wisdom and assistance. Have a good day.

    Justin

    This seems to be the only post author plugin that does what I need, yet I can’t get any images to upload. I have tried everything. Someone, please help!

Viewing 13 replies - 16 through 28 (of 28 total)