katstr
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Featherlight Disabled] Webp support?Hi Johnny,
That’s awesome, thanks a lot! ??
Update: It is resolved now, the problem was another third-party plugin (polylang). Thanks again for your help!
I agree, it looks like the issue is unrelated to your plugin. I put the code snippets in the functions.php of my child theme. I don’t have to replace the “my-cptui”, right?
Hi Michael,
Thanks for your reply!
I tried the first snippet from this side for the search results:
https://docs.pluginize.com/article/23-post-type-posts-in-search-resultsand the snippet that you suggested from here:
https://docs.pluginize.com/article/17-post-types-in-category-tag-archives
making this adjustment:if ( is_author() && empty( $query->query_vars['suppress_filters'] ) ) {
Unfortunately, none of the snippets had the desired effect. I don’t know why it isn’t working. Am I supposed to replace anything else in the snippets?
Here the code from the CPTUI tools section:
{“use-cases”:{“name”:”use-cases”,”label”:”Use Cases”,”singular_label”:”Use Case”,”description”:”infsoft Use Cases”,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:”\/resources\/use-cases\/”,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”false”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”6″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-portfolio”,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”trackbacks”,”custom-fields”,”comments”,”revisions”,”author”,”page-attributes”],”taxonomies”:[“usecase_tags_en”,”usecase_categories”],”labels”:{“menu_name”:”Use Cases”,”all_items”:”All Use Cases”,”add_new”:”Add new”,”add_new_item”:”Add new Use Case”,”edit_item”:”Edit Use Case”,”new_item”:”New Use Case”,”view_item”:”View Use Case”,”view_items”:”View Use Cases”,”search_items”:”Search Use Cases”,”not_found”:”No Use Cases found”,”not_found_in_trash”:”No Use Cases found in trash”,”parent”:”Parent Use Case:”,”featured_image”:”Featured image for this Use Case”,”set_featured_image”:”Set featured image for this Use Case”,”remove_featured_image”:”Remove featured image for this Use Case”,”use_featured_image”:”Use as featured image for this Use Case”,”archives”:”Use Case archives”,”insert_into_item”:”Insert into Use Case”,”uploaded_to_this_item”:”Upload to this Use Case”,”filter_items_list”:”Filter Use Cases list”,”items_list_navigation”:”Use Cases list navigation”,”items_list”:”Use Cases list”,”attributes”:”Use Cases attributes”,”name_admin_bar”:”Use Case”,”item_published”:”Use Case published”,”item_published_privately”:”Use Case published privately.”,”item_reverted_to_draft”:”Use Case reverted to draft.”,”item_scheduled”:”Use Case scheduled”,”item_updated”:”Use Case updated.”,”parent_item_colon”:”Parent Use Case:”},”custom_supports”:””},”press”:{“name”:”press”,”label”:”Press”,”singular_label”:”Press”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”false”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”7″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-book”,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”trackbacks”,”custom-fields”,”comments”,”revisions”,”author”,”page-attributes”],”taxonomies”:[“press_categories”],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””}}Thanks for your help!