I have a search bar on a site which runs a WP_User_Query and lists users.
It'd be great to tap into the power of Relevanssi so more info on a user can be searched e.g. custom fields etc.
Relevannsi has a relevanssi_do_query($your_query_object); (link) function which works great with WP_Query... however does nothing to WP_User_Query.
Has anyone found a way to solve this?
I'm aware of the Index and search user profiles setting in the backend, however this affects all instances of search results, which isn't what I'm after.
Turns out the latest version of the plugin solves the issue.
Related
I need to implement to Wordpress something like Public Revisions. The idea is that for every post and page there'll be a list of revisions (public, not only for logged-in) that allows reader to click to display previous version of post or page. So, I guess there should be a loop to check if there is a revision and print them while there are some. Making the list clickable, and showing the revisions would be awsome.
There was a plugin to do that, but it's abandoned and it doesn't work anymore. In fact, you can't even get it from the official list of plugins for WP.
Please help me achieve it the best (easiest) possible way. Unfortunately, my knowledge of PHP is only basic.
Dunno if you still need it but perhaps you could have a look at this?
https://developer.wordpress.org/rest-api/reference/post-revisions/#list-post-revisions
Seems like you could retrieve the data and create a page with it.
I have setup a Woocommerce store with hundreds of variable products (months ago). Everything has been working great with product variations/attributes so far, but today I got a message saying that customers are unable to pick a size for some of our products.
So, I have been looking into this, but I do not see why this is not working as intended...
I have set the attributes correctly on the back-end, I know this because it has been working as intended for the last 6+ months. I have also looked at the attributes & variations settings for these products, and they are all still set correctly.
Then, I double-checked to make sure the variation still had a price set, which it does.
Then, I checked the front-end of the site, and sure enough, the "size" attributes no longer show any options.
Any thoughts on why this might be? I have looked around stackoverflow a bit already... and the only thing I have found that I haven't tried yet, is: disabling all the plugins and reverting the site's theme to a default theme... I am really trying to avoid going down that road...
Sample URL (manually set product "Size" attributes on product page back-end):
https://www.worldequestrianbrands.com/product/contour-all-purpose-pad-with-bare-flaps/
Any/all help is greatly appreciated!
WordPress: 4.7.4 - WooCommerce: 3.0.5
Update #1:
Follow up:
After investigation, and an email from a fellow stackoverflow user, I have narrowed this down to a plugin version incompatibility with WooCommerce 3.0.5. Rolling back to WC 3.0.4 restored all the products' custom attributes to the front-end of the site. I am not sure what or why this issue happened, all I know is that rolling back WC was as a temporary workaround.
More Info:
When I first posted this issue on stackoverflow, I was running WC 3.0.5. When running that version, this was my experience:
I have Variable Products setup with multiple Custom Attributes (set for each product, not through the WooCommerce > Attributes settings admin-sidebar feature of WC).
If I went to edit a Variable Product with custom attributes, all of custom attributes showed up fine on the back-end, but only 1 of the custom attributes would not show any options on the front-end (e.g. "size" attribute).
Looking again at the back-end of the product, the size attribute is listed, with variations, and a set price.
I tried clicking "Update" on a product, just to see what would happen, and when the back-end page reloaded, the custom attribute I set was gone (e.g. "size").
So, I figured it wasn't loading that Custom Attribute for some reason, so I went to the proper: WooCommerce > Attributes, and set the "size" attributes there
Then went back to the variable products, and added the newly set "size" attributes, from the proper WooCommerce > Attributes that I setup
Clicked "Update" to commit the changes, and there we go, now the "size" attribute shows up correctly on the front-end
I manually updated over 100+ products this way
A fellow stackoverflow user emailed me and mentioned he had the same issue, but rolling back to WC 3.0.4 worked for him, as a "workaround"
I rolled WC back from 3.0.5 > 3.0.4, and boom, all the Custom Attributes we have set are now loading on the front-end of each product, as intended.
So, after all of that... I am still not sure exactly what is causing the issue, all I know is rolling back WC seems to allow certain Custom Attributes to be displayed again, on the front-end.
If I find out anything else, I'll be sure to update here!
Thank you again for any/all help with this! I am glad this 'workaround' is possible, for now, but the root of the issue is still unresolved.
I have not looked at any PHP or any other server logs yet, due to limited time, but I am happy to report any follow up info I can - or the actual issue AND solution! :)
Any other insights are greatly appreciated! I am still curious why this is happening...
Cheers!
Update #2:
This seems to be a known issue with WooCommerce 3.0.5, as stated on github
"We've identified the cause of the errors. This issue happens when you have a custom attribute with the same name as a global attribute. We're working on a fix now."
I'm trying to show more than 100 users profile in my website it's like a list that every user has he's own specification and some fields like major or etc
that I need to put filter for them which if I select a filter all of users with that filter shows.
I've searched wordpress.org and google for it but I coudn't find a usefull plugin for this job.
Any idea how to do this ?
Thanks in advance.
You can write a php code to filter or search those users for you from mysql and load this code with iframe into your post, i've did this once and worked perfectly for me.
Currently I have an installation of WordPress that is running a plugin called Types. When I search for posts inside a custom post type I get no results at all. The URL string looks correct:
&action=-1&m=0&seo_filter&paged=1&mode=list&action2=-1
But it returns nothing.
Additionally, when I remove &action=-1, the search results show up correctly. I have tried disabling the plugin and it works correctly, however I have other sites using the same plugin and searching works on these.
Does anyone have any ideas on how to fix this?
Read - Yoast's guide on integrating Gravity Forms to realise the greatness of this plugin.
It has a paid limitation on assigning role capabilities to custom post types which can be partially fulfilled with http://wordpress.org/plugins/map-cap/
It would probably be best asking the plugin developer in the WP Support forum.
http://wordpress.org/support/plugin/types
Im working on a wordpress powered website for a client that involves a directory of local offices. Part of their requirement is that live sorting be implemented via drop downs, so when someone selects X Office in X Area, the page dynamically loads the relevant results.
I currently have a custom post type set-up called "listing", which lists all the relevant information for that office. I then display each of those fields via the Loop.
In a perfect world, a plugin would exist that would perform the above, but I've yet to find one. The closest I've come is The custom category sorting over at Digging into Wordpress.
Any suggestions on a "easy" solution that would allow me to sort "listings" with multiple attributes?
please use the wp-smart-sort plugin for that.
With the help of this plugin you can also sort the custom field
If there is any issue after the use of this plugin then let me know
thanks