Damian Gostomski
Forum Replies Created
-
Forum: Plugins
In reply to: [User Taxonomies] How to query for users?Hi
Just had a quick look at the WP_User_Query class (which is what powers get_users) and there is no mention of taxonomies or terms as far as I can see, so it would seem not.
What I’ve actually done in a recent project, which makes user taxonomies redundant, is use a CPT for user data, and link this back to the user.
This way you get to utilise all the goodness of Custom Post Types and Custom taxonomies, which made everything much easier in my case.Not sure how feasible something like that would be for you?
Hmmm…
Does the error occur on every page or just specific ones?
Have you tried going to Settings > Permalinks to flush the rewrite rules?@ipstenu – Any idea why there seems to be a 6 day lag on the notifications when following my support RSS feed?
Thanks Timothy, great contribution
I’ll get this patched back into the plugin and update it this weekendThanks very much Ipstenu – Added to my RSS feed so should be much quicker to respond to support requests ??
Hi
Firstly, apologies for taking so long to get back to you… It seems WP.org doesn’t auto alert plugin authors of support requests!
What you’re after is a feature I plan on adding as soon as I get a spare few hours. (The long term solution would be to make it behave like categories and tags for posts, but for now multi select chockes would be a sufficient solution).
I’ll hopefully find some time this week to work on it, and will update this thread when I push out an update – Hopefully that’s not too late for your project.
Hi
Firstly, apologies for taking so long to get back to you… It seems WP.org doesn’t auto alert plugin authors of support requests!
Can you let me know what version of WP you’re running, as I’d tested it on several version and they all seem to work.
Does this occur for you on a clean install as well, or only if you have other plugins/a non default theme enabled (if so, can you let me know what theme/plugins are enabled so I can try to replicate).Thanks
DamianForum: Plugins
In reply to: Assign User Role and or User Group at Registration based on user nameI’ve not used Role Scoper or Members, but would assume both work of the standard WP roles system (and if not, they should)
I also assume you’ve fine getting the user role based on their student ID (either a simple database lookup or using an API)
Here is the code to set the user role which should set you off in the right direction
// Create the user as normal $user_id = wp_create_user($username, $password, $email); // Get the user role by ID number from somewhere $user_role = get_user_role_by_student_id($student_id); // Get the user object and add the new user role $user = new WP_User($user_id); $user->add_role($user_role);
Forum: Requests and Feedback
In reply to: Site move/url change featureAlthough it’s a stand alone script, this solution is the best I’ve found. It works better then a simple search and replace on a SQL dump as it maintains the integrity of serialised objects/arrays, and all image and URLs stay in tact
https://interconnectit.com/124/search-and-replace-for-wordpress-databases/
Forum: Fixing WordPress
In reply to: WP Admin accessThere should be a file called .htaccess in the root of your installation
You may need to enable hidden files to see it…View it in Notepad or similar and then paste the contents here
Forum: Plugins
In reply to: Anyone know of a slider plugin like this?It might be easier to find a JS plugin to do what you want, and then just have a WP Query to pull in X posts from category Y for the content of the JS plugin
I’ve done a similar thing on https://ehub.edenred.co.uk with the homepage panel, where I’ve modified a slideshow plugin, but that’s bespoke for the theme, and not a plugin
Not the most elegant solution, but it works
Forum: Fixing WordPress
In reply to: WP Admin accessIt looks like you might have a dodgy .htaccess file routing everything through WordPress, even if you call a PHP file directly (such as wp-login)
What are the contents of your .htaccess file?
Forum: Installing WordPress
In reply to: PHP Not Running – Shows CodeLogin to your web hosting control panel, and ensure that PHP is enabled to run on the domain – I’ve been caught out once by that before…
Forum: Themes and Templates
In reply to: Get Blog Posts Into A Non WP Site?If all you want to do is pull in the most recent X post, you can bypass having to load WordPress and just use the XML feeds, for example
https://archerproject.org.uk/feed to get the postd
https://archerproject.org.uk/2010/08/03/grammy-award-winner-homeless-for-the-night.html/feed to get comments on a postAnd if your current attemps result in a blank page, make sure errors are turned on, as you’ve probably hit a critical error
Forum: Plugins
In reply to: [Event Calendar] As usual, ….According to your rationale, WP shouldn’t have the Codex either; but you know what? IT’S THERE FOR GOOD REASONS
Yes, WordPress does have a codex, but do you think it was all written by the authors of WordPress? Nope. Anyone with an account can log in and update the codex, expand on some of the content, or even fill in some of he blank pages.
That’s the beuty of the Open Source model – Anyone can contribute. If you think that documentation is missing or incomplete or something, there’s nothing stopping you from writing it and contributing. In many cases the auuthor would prefer that to a small monetary donation!
And I expect you’ll probably respond by saying you couldn’t even help write the documentation as you don’t understand how it should work (despite others saying it’s intuitive). In that case, you could still help by being specific with what you’re struggling with.
Had you started this thread by saying “How do I make it do X, I’ve tried Y and Z and they’ve not done quite what I expected because…” you would have got a much quicker respponse, and one that hellped with what you wanted.Forum: Fixing WordPress
In reply to: Only Display Comments When Viewing Comments URLUnfortunately, the hash (#comments) doesn’t get sent to the server – It’s client side only.
Ony way around this would be to have the comments always loaded server side, but hidden on the client side using JS. Then just have a click listened on the link which will show the comments by showing the hidden div