jtrip
Forum Replies Created
-
@gcacciola I can’t seem to find how to PM you. Are you on twitter or GitHub?
Hi gcacciola, I am _fairly_ experienced at this point, more comfortable with PHP than wordpress in particular but I have been able to implement a few good features…
I took a look at the code and I was able to get it to work for me, at least so far I believe, not sure what kind of troubles I might run into.
I would love to try and work with the dev on expanding the functionality of this plugin but probably not until I see a GitHub or other public project. I’ll PM you what I did in the mean time.
Did you have any luck with this? I am trying to do the same…
It seemed like it should be easy to replace the checks against ‘page’ with your custom type, as long as it is hierarchical. But that is not working for me.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Regeneration fails without indicationMy bad (partially), WP support search is terrible so I didn’t see how common this issue is.
I just needed to install php gd.
on Debian Jessie, running PHP5.6 I needed to install:
php5-gd
which I found by looking through the results of:
apt-cache search gd | grep phpfor the uncomfortable that’s something like:
sudo apt-get install php5-gd
and then
sudo systemctl restart apache2
(if you are running systemd, which is default on Jessie)Forum: Plugins
In reply to: [LH User Taxonomies] given user(name/id), return tag(s)Awesome, thanks!
I’m not fully indoctrinated into the church of wordpress, so I figured I was just missing something fairly obvious.
Forum: Plugins
In reply to: [LH User Taxonomies] given user(name/id), return tag(s)Hi, I am talking about accessing the values from the front end. I did not see any suggested way of reading the values your plugin helps store. Yes, I understand the purpose of the ‘single_value’ argument.
Sorry if this is above and beyond, I thought I could expect that to be covered by the documentation of the plugin.
As I mentioned above I have written a function that does what I need it to do. Maybe you could comment on it for the value of all your users? I was under the impression I might have just missed something obvious or documented elsewhere.
Thank you for your code and support. 🙂
Forum: Plugins
In reply to: [LH User Taxonomies] given user(name/id), return tag(s)I believe I have a sufficient method brewing, just wondering if there is anything better (more efficient or just pre-existing / more elegant)
// expects $current_user function userOffice($user_value){ $uid = $user_value->ID; $terms = get_terms( array( 'taxonomy' => 'home_office', 'hide_empty' => true, ) ); $return_terms = array(); foreach($terms as $term){ $ids = get_objects_in_term($term->term_id, 'home_office'); if (in_array($uid, $ids)) { array_push($return_terms, $term); } } return $return_terms; }