gabrielwilde
Forum Replies Created
-
Forum: Plugins
In reply to: [Testimonials Widget] testimonials showing but are not rotatingI have two installed because I was migrating from my old testimonial plugin to yours because i really wanted to get things rotating 😉 would really like your help, thanks!
Forum: Fixing WordPress
In reply to: Trying to call categories for a dropdownSure. So here is the play by play:
Someone Comes to the site they click “post new posting”
which takes them to this form that they fill out
In this form There are a few fields one being a dropdown box with the categories (what we are truing to fix)After this form is filled out the user clicks post
a post is then created in WP with custom fields automatically filled in one of which being the category.
Does that help if not email me @ bgeorgeibo [at] gmail and i will link you to the site 🙂 thanks a bunch!
Forum: Fixing WordPress
In reply to: Trying to call categories for a dropdownno, its just a postform. Thats just one segment of the entire form, I can post the whole form up if you need.
The way it works is screen one, person fills out the form (including the category select) then proceed to page two which is a preview and then a post
Then the post is created with all the relevant information as custom fields
just noticed in the custom field for category its coming up as:
<select name=’cat’ id=’cat’ class=’postform’ ><option class=
Forum: Fixing WordPress
In reply to: Trying to call categories for a dropdownWell its code in a template, everything but works except this section. Emailed the developer, no go :).
Well i’m completely new are coding (I can hack php well enough to get by usually), mostly a designer :).
The way this is supposed to work is someone selects a category from a drop down in a form and then based on that category is where the results (in this case a posting) of the entire form are linked to.
So when someone selects the category they see all the forms posted in that category (if that helps you)
Thanks a bunch by the way! 🙂
Forum: Fixing WordPress
In reply to: Trying to call categories for a dropdownwhoops sorry, here is the whole function:
<?php $cats = wp_dropdown_categories('orderby=name&order=ASC&hide_empty=0&echo=0'); $cats = str_replace("\n", "", $cats); $cats = str_replace("\t", "", $cats); $cats = str_replace("<select name='cat' id='cat' class='postform' ><option value=\"", "", $cats); $cats = str_replace("\">", "-", $cats); $cats = str_replace("</option><option value=\"", "_", $cats); $cats = str_replace("</option></select>", "", $cats); echo "<select name=\"postcats\" id=\"postcats\">\n"; $cats = explode("_", $cats); foreach ($cats as $catsss) { $catsss = explode("-", $catsss); $cat_id = $catsss[0]; $cat_name = $catsss[1]; echo "<option value=\"$cat_id\">"; echo $cat_name; echo "</option>"; } echo "</select>"; ?>Forum: Fixing WordPress
In reply to: Trying to call categories for a dropdownalso if someone could explain the logic behind this too that would be excellent!