JFK1980
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Issue with get_the_terms() and custom taxonomies.Well, I managed to get it working, although not sure it’s the most elegant solution:
$terms = get_the_terms($post->ID, 'help-centre-category'); foreach ($terms as $term) { if ($term->parent == 0) { echo '<li><a href="'.get_site_url().'/help-centre/'.$term->slug.'/">'.$term->name.'</a></li>'; } } foreach ($terms as $term) { if ($term->parent != 0) { echo '<li><a href="'.get_site_url().'/help-centre/'.$term->slug.'/'.$term->slug.'/">'.$term->name.'</a></li>'; } //Prevent more than one child showing if accidentally selected break; }
Any thoughts on how to improve it would be appreciated.
Thanks
On further investigation, it’s my fault…
I have disabled access to various options for the client Admin accounts like so:
function admin_role_options() { $role = get_role('administrator'); $user = new WP_User(1); $caps = array( 'manage_options', 'export', 'import' ); foreach ($caps as $cap) { $role->remove_cap($cap); } foreach ($caps as $cap) { $user->add_cap($cap); } update_option('admin_role_options', 'done'); } add_action('init', 'admin_role_options');
And then reinstated access to myself.
Can you see a workaround for what I’m trying to achieve? The level of access they have for the forms is perfect, along with the other options we want them to have, except for the vital option of being able to download the submissions.
Thanks again.
Forum: Plugins
In reply to: [ACF Content Analysis for Yoast SEO] Does this plugin work with Multisite?Hi Viktor, that’s excellent news!
We still have it installed, so I’ll run the update now and see if it all works out.
Thanks for letting me know. ??
Forum: Plugins
In reply to: [ACF Content Analysis for Yoast SEO] Does this plugin work with Multisite?Hi Viktor,
Thanks for your reply, I look forward to the update.
Thanks
Forum: Plugins
In reply to: [PHP Browser Detection] IE8 XP on BrowserStack Showing as version 0.0No problem, glad to be of help. Excellent plugin, very useful!
Forum: Plugins
In reply to: [PHP Browser Detection] IE8 XP on BrowserStack Showing as version 0.0I reported this issue as suggested, it seems that your plugin is using an out of date version of Browscap. I have updated manually and it has fixed the issue.
You can see the discussion here: https://github.com/browscap/browscap/issues/829
Thanks for your help!
Forum: Plugins
In reply to: [PHP Browser Detection] IE8 XP on BrowserStack Showing as version 0.0Hi Stebin,
Thanks for testing that out for me on a local machine, glad it’s not just me that’s found that issue.
Forum: Plugins
In reply to: [PHP Browser Detection] IE8 XP on BrowserStack Showing as version 0.0Thanks for your reply and for looking into this for me.
As suggested, I have created a clean install of WP 4.3.1 with no plugins, using the 2015 theme. I am still getting 0.0 in just IE8 XP:
https://i.imgur.com/i3SheSP.png
These are the same results I’m seeing in BrowserStack and using the official Microsoft Virtual Machine build.
I notice that your results are displaying WinVista, which I wouldn’t expect to see from an XP install?
Forum: Plugins
In reply to: [PHP Browser Detection] IE8 XP on BrowserStack Showing as version 0.0There’s no updates available that I can see, I’m running Version: 3.1.8 on WP 4.3.1
Unfortunately I don’t have a native XP machine running IE8 to test on for total certainty, but both methods I’ve tried aren’t working and still showing the version number as 0.0, where all other browsers are giving the correct version number.
I’ve even added the detection as the first script that runs in header.php, just in case it was conflicting with anything else. IE7 on XP and IE8 on Win7 are still behaving as expected.
Forum: Plugins
In reply to: [PHP Browser Detection] IE8 XP on BrowserStack Showing as version 0.0I’ve also tried this on a Virtual Machine running IE8 XP and it’s still not working as expected.
Forum: Fixing WordPress
In reply to: Automatically update page permalink on title changeAs I already said:
I know that if the permalink input field is deleted (and then saved as empty) it will automatically update itself to the page title.
I am aware of this, it’s not a problem for me as a user, it’s a client request.