Oxibug
Forum Replies Created
-
Plugin Conflict
@robert681 Just Mention
Hi Robert,
Did you test the WordPress v5.8 Widgets? It appears in every Widget preview
Widgets.php Page: Screenshot – widgets.php
Live Customizer: Screenshot 02
Thanks
@diondesigns No Pal, Your $where array is incorrect a lot of SQL injection could happen there and it’s against the WordPress wpdb docs.
Thanks for your help anyway ??
Forum: Developing with WordPress
In reply to: Error with multiple get_the_termsActually I don’t like to use those functions for custom post types, You can use get_terms instead so you can pass your post type in the args array
I DID NOT test that code but according to the docs it should work properly
$terms = get_terms( array( 'post_type' => CPT_SLUG, 'taxonomy' => 'CPT_TAX_SLUG', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false, //can be 1, '1' too 'fields' => 'all', 'meta_query' => '', 'meta_key' => array(), 'meta_value'=> '', /* This Should Work too - BUT I think you should remove 'taxonomy' from the main array */ 'tax_query' => array( array( 'taxonomy' => 'YOUR_TAX_SLUG', 'field' => 'slug', 'terms' => array( 'action', 'drama', 'comedy' ), 'operator' => 'NOT IN', /* You can add SQL operator AND | OR | NOT IN ...*/ ) ) ) );
Hope it’s help
- This reply was modified 6 years, 1 month ago by Oxibug. Reason: add code tags
Forum: Developing with WordPress
In reply to: Error with multiple get_the_termsI didn’t try it yet, But Did you try wp_get_post_terms instead?? because get_the_terms caching the result
Forum: Reviews
In reply to: [Kirki Customizer Framework] Can’t be used on real projectIn any awesome project you must meet someone who don’t know anything about developing put a bad rate and in any bad and non-free project he put a high rate.
This is an awesome plugin guys.
Best
Forum: Plugins
In reply to: [CDN Enabler] Double requests to the same filesNever mind, My bad
The Solution:
I’m using the AWS Certificate Manager to generate an SSL certificate for Cloudfront distribution but in [Origin Settings] I chose [HTTP Only] for [Origin Protocol Policy] and this was a fetal mistake which display two main issues
1. Redirect images from [//cdn.example.com/image_1.png] to [//example.com/image_1.png]
2. Doubled files requests one from CDN’s URL and the other from the website’s URL like:
//awscdn.example.com/file_1.js //example.com/file_1.js
Thanks.