matthewmcvickar
Forum Replies Created
-
I created an issue in GitHub for this: https://github.com/Yoast/wordpress-seo/issues/21640
I looked into the Yoast SEO plugin source code and discovered that this feature only works if the custom taxonomies are hierarchical. I don’t want to make my custom taxonomies hierarchical. Why is this set up this way?
I am also seeing this bug.
In my local?environment, Jetpack is version 11.5.1 and I don’t see this error. In my particular production environment, Jetpack is an MU plugin and is automatically updated—it’s currently at version 12.2—and I am seeing the bug there.
Looking at the changelog: In version 12.2, released 2023-06-06, there appear to have been a handful of changes to the Subscriptions feature, and another commenter on this issue says they started seeing the error on 2023-06-07, so the error is likely part of that update.
- This reply was modified 1 year, 5 months ago by matthewmcvickar.
OK, I see. If may try to do this with custom code. Can you provide documentation for the appropriate hook names/parameters in your plugin that I could use?
Forum: Developing with WordPress
In reply to: Year archive for custom post typeThank you both for the insight!
I ended up doing this:
// Create a URL for filtering press releases by year. function press_releases_rewrite_rules() { add_rewrite_rule( 'press-releases/([0-9]{4})/?$', array( 'year_filter' => '$matches[1]', 'post_type' => PRESS_RELEASE_POST_TYPE, ), 'top' ); } add_action( 'init', 'press_releases_rewrite_rules', 11, 0 ); // Register the 'year_filter' query variable so we can filter by it. function register_year_filter_query_var( $vars ) { $vars[] = 'year_filter'; return $vars; } add_filter( 'query_vars', 'register_year_filter_query_var' ); // Alter WP query to support year filter for press releases and media coverage. function add_year_filter_to_media_coverage_and_press_releases( $query ) { // Exit if this is the admin, not the main query, or not a press release query. if ( is_admin() || ! $query->is_main_query() || empty( get_query_var( 'post_type' ) ) || PRESS_RELEASE_POST_TYPE !== get_query_var( 'post_type' ) ) { return; } if ( ! empty( get_query_var( 'year_filter' ) ) ) { set_query_var( 'year', get_query_var( 'year_filter' ) ); } } add_filter( 'pre_get_posts', 'add_year_filter_to_media_coverage_and_press_releases' );
- This reply was modified 4 years, 2 months ago by matthewmcvickar.
@takayukister Any thoughts on this? It seems like a bug.
Setting it to
1
also has no effect.I have tried changing the filter priority to 999999 and it still doesn’t work.
Why 999999?
I was attempting to raise the priority of the filter function.
Forum: Plugins
In reply to: [Autocomplete For Relevanssi] Do not use this pluginMikko, thanks for your input here as the developer of Relevanssi. If someone is looking for an autocomplete popup to hook into Relevanssi, is there an alternative that you suggest?
Yes, I can always recreate it.
I just tried to go back and re-enable ‘page’ in the ‘Post types to include’ list, and when I check it and click ‘Save,’ it is not checked when the page reloads.
If I check both ‘page’ and ‘attachment’ and then click ‘Save,’ it does save them both.
I’ve tried this with other post types, too. If I change just one item in the list to checked or unchecked, it doesn’t save. If I change two or more, they all save.
Forum: Themes and Templates
In reply to: Loss of custom url to make a menu listingIt didn’t disappear—it moved.
Click on the ‘Links’ section of the accordion menu on the left to access the ‘custom link’ feature.
Screenshot here: https://i.imgur.com/o0aNO1G.png