boxportable
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.November 24, 2014 at 4:54 pm in reply to: Changing post type dropdown filter to categories drop down. #22471
Ok figured why its not working, sorry for the necro but this is still an issue for me,
The reason is because the drop down for post types sets a variable in the search string “stype” and this one didn’t the search seems to work off the type of custom post you are searching by rather than the category as I was wanting, I will update as I get it working.
Ah Jeff that sounds good and something I will definitely look into thanks for the help I appreciate it.
I was looking at exporting listings from one custom post type to another with the same fields so I can remove the additional custom post type.
So there is no export options? sorry I am slightly confused with the setting for allowing export if there is no export option :/
Well this is all good to know perhaps if the documentation wasn’t so barren I would of known this :/ but based on what your saying its still not what I want.
The code I added is custom HTML / Javascript for opening hours and also a bit for extra listing images using the wordpress built in media browser instead of the one that comes with geodirectory as standard which seems to be just a simple browse for file popup window.
I had to add code into the following files;
– Admin_hooks_actions.php (declare the 2 fields for them to appear as drag / drop items)
– Custom_field_html.php (added them to the switch in here, needed to but nothing under them as code)
– Custom_fields_functions.php (the actual code and some script file hooks for what would render when in the add/edit listing page)Each time I update I need to go and update all these files which is somewhat annoying.
Not sure what you mean by (again documentation isn’t very populated):
“Additionally, there are functions (not hooks) that can be run one time (via a plugin or theme) to programmatically add them. I used this in my GT-Vouchers plugin.”also on the topic of hooks, any idea when some sort of documentation would be available on this topic (ie; list of available hooks)?
I bought this plugin several months ago now and have yet to see any progress with documentation and having to search or ask on the forums every time I want to hook something is time consuming and to be honest a little annoying.
Also just noticed the feature request bit to the right there, so this will only be implement if its in there and voted as popular? Because that kind of contradicts the bit about hooks and actions here:
Anytime we can expect this? I would class this as a bug rather than a feature.
Topic I made:
https://wpgeodirectory.com/support/topic/ampersand-support/October 15, 2014 at 12:39 pm in reply to: Changing post type dropdown filter to categories drop down. #18421Sorry for the slow reply I have been away from this project for a month now.
Basically I have an accomidation custom post type right? it has 3 categories, B&B, Hotel, Hostel, I have these in a drop down list so I can filter by category, this doesn’t work with the events directory where I have categories like Local events, Sports events etc.
Is there any reason for this.
How is this handled in the back end when entering info? I have done this in my back end, similar output on the front to how you have it pictured.
When editing actions in the core files I take it I should be copying the whole action to the template files then removing the action and re-adding it and then having my modified code this way?
What hooks would I use for custom field html?
I have added in 2 new custom fields for the plugin one field for extra listing images using the WordPress media manager and another plugin to set business opening hours per day to show “closed, closing soon, open, opening soon” on the front end.
These were added by editing 3 files and adding some extra script files for the media manager etc, I don’t know how this can be accomplished with hooks as I have placed my edits in the same places as the current fields which is in the middle of switches and if statements :/
Where can I find a complete list of hooks and filters?
I looked at the documentation wiki thing on the site it doesn’t seem to list any… unless I completely missed them
Thanks
I think the recent updates have fixed this because I updated the core + custom posts + events plugins (all I own basically) put my code back in and its all working and saving now, so this can be marked as resolved.
ah right ok well its not really an issue I just want to update the site while its still in development when the client gets the hand over as long as everything is working at that point its out of my hands so wont be an issue.
-
AuthorPosts