joshrodgers
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_dropdown_categories generating url ID number instead of slugnumer,
Thanks for the clarification ??
Josh
Forum: Fixing WordPress
In reply to: wp_dropdown_categories generating url ID number instead of slugnumer,
This post helped me so much!! I tried everything from any forum I could find and nothing worked…except this! What I am trying to do is understand the code a little bit.
I simplified the output a little by removing the counter and the update…the code now looks like: https://pastebin.com/VMWwcn1k.
Everything else looks pretty self-explanatory (to me), but what does the $pad variable do? I see the repeat, the and the $depth parameter, but I have no idea what it’s doing.
Just curious…thanks,
JoshForum: Fixing WordPress
In reply to: Multiple Category SearchFound a solution!!
This goes into your functions file: https://pastebin.com/UHHR5pPb.
This goes into your theme: https://pastebin.com/9GqbFDZx.
The walker provides the functionality ??
Hope this helps someone!!!!
Thanks,
JoshForum: Fixing WordPress
In reply to: Multiple Category SearchI think I can make my original code work…When I do a search with the plugin the url is: https://joshrodgers.com/?s=title&product_cat=saturn&product_cat=view
I just changed the names of the dropdowns to match and now My code now looks like:
When I do a search the only difference between my code and theirs is that theirs uses names for the product_cat, where mine uses numbers…is there anyway to change this so that mine also uses names?
Forum: Fixing WordPress
In reply to: Multiple Category SearchOk,
I found something I think is going to work, it just needs a small tweak…
While searching, I found the following plugin: Query Multiple Taxonomies
All I have to do is activate the plugin and add the following code to my template: https://pastebin.com/w4zANRBc.
This works…you can check it out at: https://www.joshrodgers.com/.
The only thing is, is that the dropdown has both the make and the model, is there any way to restrict it so that the first one just has “Make” and the second just has “Model”?
NOTE: I created my own template for the dropdown (Reference Here) which looks like: https://pastebin.com/hLN16JF9.
Thanks in advance!
JoshForum: Themes and Templates
In reply to: wp_dropdown_categoriesDavid,
That’s a great idea, I’ll definitely use get_categories instead of wp_dropdown_categories!
Thanks,
JoshForum: Themes and Templates
In reply to: wp_dropdown_categoriesalchymyth,
I just tried it a few minutes ago and it doesn’t work ?? However, I’m glad you mentioned that, hadn’t thought to try it and see ??
Thanks,
JoshForum: Plugins
In reply to: WP Search Suggest CSS DirectoryFigured it out!! Had I known it was going to be this easy, I wouldn’t have asked the question. All I did was deregister the style ??
If you’d like to deregister the plugin styles just copy the following into your functions.php file: https://pastebin.com/n9VuDcdM.
Please Note: Don’t forget to copy the plugin style names into your css file…or else the plugin won’t work properly (these can be found in the “css” folder, located in the root of the plugin!
Thanks,
JoshForum: Fixing WordPress
In reply to: Paginate_links SeparatorI ended up using a plugin instead ??
Thanks,
JoshForum: Fixing WordPress
In reply to: Comment Linksesmi…that worked!! Not sure why I didn’t see that before.
Thanks for your help!!
Josh
Forum: Fixing WordPress
In reply to: Parent arrow for submenuGoing through my posts and found this one…all I did was use different code for the drop down ??
Thanks,
JoshForum: Fixing WordPress
In reply to: Page ID from Page NameWoo hoo!! Thanks for your help!
esmi: I had looked at that, but I am using this function outside my loop ??
alchymyth: I changed post_name to post_title in my functions page and now everything works great!! In addition, I looked at the database and I now know where to find the page slug…so I could do it either way ?? but, post_title is definitely the easiest, most efficient, route.
Thanks to the both of you!!! Everything works like a champ!
Josh
Forum: Fixing WordPress
In reply to: Comment LinksRewrote my comments code, haven’t found a solution, displaying all of them at the moment ??
Josh
Forum: Fixing WordPress
In reply to: Comment PagingRewrote my comments code, haven’t found a solution, displaying all of them at the moment ??
Josh
Forum: Fixing WordPress
In reply to: Sorting Two QueriesI figured it out!!
I used an array to query both my posts and my custom post type posts, I used the following code: https://pastebin.com/r2a304Ft
In the array “post” returns my posts and “inductees” is the name of my custom post type. Hope this helps someone!!
Thanks,
Josh