benjammin
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] Won’t create PortfolioI enter, portfolio, Portfolios, Portfolio, just the basics, nothing else and it does absolutely nothing. I enter dog, Dogs, Dog or any other word like portfolio_work, Portfolio Works, Portfolio Work and everything works as expected.
Well I don’t want to broadcast the credentials. I will share them with you. How can we do that?
I had to update the Ngrok link so use this one if you can’t get to the site.
- This reply was modified 6 years, 2 months ago by benjammin.
I opened a ticket with the theme developer thinking that might be a cause. This issue is beyond me. I do appreciate all of your help!
I disabled Clean Talk and now every possible plugin I have without removing BB and B. Themer.
I’ve cleared browser cache, and BB Cache too.
Are you sure it’s because of Clean Talk?
I see where you’re going with this; if you remove this “/information-governance-topics/information-privacy” you’re left with this “/?topics=data-governance,” for example, and that will then redirect to the archive. If I remove the former from the query leaving the latter, then it works as it should. Question is, what is keeping it from leaving this “/information-governance-topics/information-privacy” in the way each time?
None of these work:
if ( is_category() || is_tag() || is_tax('ig_topics') && empty( $query->query_vars['suppress_filters'] ) ) {
if ( is_category() || is_tag() || is_tax('topics') && empty( $query->query_vars['suppress_filters'] ) ) {
if ( is_category() || is_tag() || is_tax('ig-topics') && empty( $query->query_vars['suppress_filters'] ) ) {
Yes, I noticed that before this response… that the dropdowns are appending the current URL.
Yes, I agree that the dropdowns should be sending you to the rewrite URL and then to the final URL you showed. If you go to each IG Topic index page you can click on the category links in each post index, they go the right link which would be as you showed.
Well here’s what I have and it doesn’t affect the widgets in the proper way:
//Adding all CPTUI post types to the archives. function my_cptui_add_post_types_to_archives( $query ) { // We do not want unintended consequences. if ( is_admin() || ! $query->is_main_query() ) { return; } if ( is_category() || is_tag() || is_tax('ig_topics') && empty( $query->query_vars['suppress_filters'] ) ) { $cptui_post_types = cptui_get_post_type_slugs(); $query->set( 'post_type', array_merge( array( 'post' ), $cptui_post_types ) ); } } add_filter( 'pre_get_posts', 'my_cptui_add_post_types_to_archives' );
What do you need to see to more effectively help?
I’m so sorry, I mistakenly put my apple to sleep, ngrok won’t work then. It’s back up.
Well what would you need to see what’s going on?
- This reply was modified 6 years, 2 months ago by benjammin.
If you go to My Dev Site at this link, and go to the bottom of the right sidebar you’ll see example widgets. The widgets with ‘CPT’ in their title name are the custom CPT widgets, and the ones with ‘WP’ in their title are default WP widgets. Neither of the Category widgets are working. Odd.
I added that ‘if’ statement to the block and it doesn’t change any query behavior, the page refreshes and stays the same. I tried both that CPT Widget plugin and the default WP Categories widget (which doesn’t populate with the custom post type categories btw), and neither widgets does anything for CPTs OR default blog loop. So not even my default WP Categories widget works on the the default WP blog. Odd.
This is what I have add in the functions.php file.
When I click on the dropdown menu for the CPT Categories widget, the categories are showing, and when I select any of them the page will not refresh, the URL does not change, the page stays the same.
Recall that I am using this plugin with its Categories widget installed. That is the one where the CPT categories show up in the dropdown menu but when I select one nothing changes on the page. The page just refreshes and stays the same.
Custom Post Type Widgets//Adding all CPTUI post types to the archives. function my_cptui_add_post_types_to_archives( $query ) { // We do not want unintended consequences. if ( is_admin() || ! $query->is_main_query() ) { return; } if ( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { $cptui_post_types = cptui_get_post_type_slugs(); $query->set( 'post_type', array_merge( array( 'post' ), $cptui_post_types ) ); } } add_filter( 'pre_get_posts', 'my_cptui_add_post_types_to_archives' );
- This reply was modified 6 years, 2 months ago by benjammin.
Michael,
It’s been a while, I’m back at this.
I do appreciate your help.
Before your last post I did have that code found under the page heading “Adding all CPTUI post types to the archives,” found at the link you provided, in my functions.php file. With it there it doesn’t take me to any of the archives for the CPT; the browser URL does not change, the same page I am on refreshes.
Do I need to add the CPT archive slug to code snippet as a value?- This reply was modified 6 years, 2 months ago by benjammin.
Forum: Plugins
In reply to: [WooCommerce] Warning: uasort() expects parameter 1 to be arrayYes, Themehigh’s Checkout Field Editor when deactivated makes the issue go away. I put in a ticket with them.
I really appreciate all your effort to help!
It’s this plugin: https://www.ads-software.com/plugins/custom-post-type-widgets/
This supposedly picks up the CPTs single posts, taxonomy and archives. It has similar widgets to the default WP search widgets. For me, the Category search widget is showing all of the categories for the CPT but when I select any of them in the dropdown list the filtering isn’t working.