Jake Hall
Forum Replies Created
-
Forum: Reviews
In reply to: [bbPress Advanced Statistics] Good PluginThanks, that was my goal with this one! I will keep the guest tracking in mind for the future, will require an overhaul of how it tracks logged in users so would probably be a long term project there.
Thank you for the positive feedback!
This has been fixed in the latest version.
Thanks for reporting!
Hi UVScott,
How embarrassing! Thank you for taking the time to find the incriminating code – I will have that fix included in the next release.
Forum: Reviews
In reply to: [bbPress Advanced Statistics] Love this pluginThank you for your kind words, what would you like to see?
Forum: Reviews
In reply to: [bbPress Advanced Statistics] Great extras for bbPressThank you very much for your kind words, I am happy you are enjoying the plugin!
Forum: Plugins
In reply to: [bbPress Advanced Statistics] In forum displayHey Ricsa,
In the next update, I will be supporting language files in the plugin. At that point, you can translate the static strings in the plugin you are unhappy with within a file instead!
Thanks,
Jake
Forum: Plugins
In reply to: [bbPress Advanced Statistics] In forum displayHey there,
I have just added the ability to display the plugin within the four hooks mentioned by Robkk, you can find these options within the Customisation Tab. This is part of the latest version, 1.0.2
Thanks for the suggestion, and thanks for the solution, Rob!
– Jake
Forum: Hacks
In reply to: Custom taxonomy and post type not working as expectedRichard,
I also use /%category%/%postname%/
This is why it is bizarre to me that WordPress posts are handled perfectly fine, however for my own post type, I am restricted to the slug as defined in the custom post type / taxonomy.
This is why I think I am doing something wrong here, I don’t mind about having the whole hierachy in the url, I am simply after:
/mods (for both SEO and also user purposes) /category-name (again, SEO and just user purpose) /post-slug
If I could scram in child categories too, that would be awesome – but not a deal breaker by any means…
Forum: Hacks
In reply to: Custom taxonomy and post type not working as expectedThat’s not exactly my issue…
The biggest issue is the categories I’ve set just are not working. Full stop
I put a post in the test category, i’d expect the permalink to be /mods/test/the-article
however it is /mods/the-article
Are you telling me this is functionally impossible in WordPress?
Forum: Hacks
In reply to: Custom taxonomy and post type not working as expectedFor example, with the following code I’d like the following:
<?php if ( ! function_exists('register_mod_posttype') ) { function create_my_taxonomies() { register_taxonomy( 'mods', 'rw_mod_post', array( 'labels' => array( 'name' => 'Mod Categories', 'add_new_item' => 'Add New Mod Category', 'new_item_name' => "New Mod Category" ), 'show_ui' => true, 'show_tagcloud' => false, 'hierarchical' => true ) ); } // Register Custom Post Type function register_mod_posttype() { $labels = array( 'name' => _x( 'Mods', 'Post Type General Name', 'mods_domain' ), 'singular_name' => _x( 'Mod', 'Post Type Singular Name', 'mods_domain' ), 'menu_name' => __( 'Mod', 'mods_domain' ), 'name_admin_bar' => __( 'Mods', 'mods_domain' ), 'parent_item_colon' => __( 'Parent Mod:', 'mods_domain' ), 'all_items' => __( 'All Mods', 'mods_domain' ), 'add_new_item' => __( 'Add New Mod', 'mods_domain' ), 'add_new' => __( 'Add New', 'mods_domain' ), 'new_item' => __( 'New Mod', 'mods_domain' ), 'edit_item' => __( 'Edit Mod', 'mods_domain' ), 'update_item' => __( 'Update Mod', 'mods_domain' ), 'view_item' => __( 'View Mod', 'mods_domain' ), 'search_items' => __( 'Search Mod', 'mods_domain' ), 'not_found' => __( 'Not found', 'mods_domain' ), 'rewrite' => array('slug' => 'mods', 'hierarchical' => true), 'not_found_in_trash' => __( 'Not found in Trash', 'mods_domain' ), ); $args = array( 'label' => __( 'mod', 'mods_domain' ), 'description' => __( 'Mods being posted to the site', 'mods_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', ), 'taxonomies' => array( 'rw_mod_category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-tools', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', 'rewrite' => array('slug' => 'mod', 'hierarchical' => true), ); register_post_type( 'rw_mod_post', $args ); } // Hook into the 'init' action add_action( 'init', 'register_mod_posttype' ); add_action( 'init', 'create_my_taxonomies' ); }
Since “mods” is the taxonomy, and “mod” is the posttype, I’d expect:
/mods/general/test/ to work, as that is a “Mod” post within a “Mods” taxonomy
Instead, it redirects to /mod/test/ presumably because it can’t find mods/general/test/, thus redirects to what it thinks is best
Am I actually doing something wrong here?
Forum: Hacks
In reply to: Custom taxonomy and post type not working as expectedHey,
That’s fine, I have removed the priority – not required. The slug for the post type is working, however, the taxonomy isn’t.
E.g, I want https://rockstarwire.net/mods/general/test to work, and would expect it to work, since it is within the /general/test/ category I’ve added with the custom taxonomy, however, it doesn’t do that – and instead shows a 404 error page.
This is even after removing the slug from the taxonomy, since from your post I understand it isn’t necessary?
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Error MessageHey,
Please download the latest update, as it will resolve this issue for you.
Thanks for reporting,
jake
Forum: Plugins
In reply to: [bbPress Advanced Statistics] Error MessageHey,
Apologies for that, it is because you do not have the latest version of PHP installed on your site, not to worry – it’s a pretty simple fix.
Edit the file
/bbpress-improved-statistics-users-online/includes/class-bbpress-advanced-statistics-online.php
and change the following code:private $_options = [];
to:
private $_options = array();
That should fix the issue for you,
Apologies for that, I will get that fixed in an update later
Jake
Forum: Hacks
In reply to: User ID handling upon logoutSolved, I realised that template_redirect was far too late, so changed the hook to init instead.
All is good!
Forum: Plugins
In reply to: [Yoast SEO] bbPress Yoast?Any help with this?