atkulp
Forum Replies Created
-
It’s disappointing that this is still not fixed. If there’s a bigger feature you’re trying to get out the door, you could at least release a minor update for the regex fix.
😊
if you want to fix it yourself before then, it’s lines 508 and 509 of extras.php. the patterns for grant and revoke have a slash at the ends of the lines which need to be removed.
508: '/\bgrant\b/i', // Removed extra '/'
509: '/\brevoke\b/i', // Removed extra '/'Forum: Plugins
In reply to: [WP Super Cache] Simple CDN does nothing at allFrom my troubleshooting it seems clear that the plugin just can’t handle relative paths. I wrote a hook to detect relative image paths and convert them to absolute CDN links and it works fine now. It would be really nice to have a setting to include relative links for this plugin
Forum: Plugins
In reply to: [Carousel Slider] All carousels stopped working with latest updateThis continues to be an issue even with 2.2.8. Can you please consider supporting different post types?
Forum: Plugins
In reply to: [Carousel Slider] All carousels stopped working with latest update@ploinkie I don’t think this is the same issue since it doesn’t work anywhere for me and I’ve determined it’s because it only looks for post_type of “post”. Not sure that it matters since I never got a response… It might be better to open a separate ticket.
Just to help anyone else out, I found three places to make updates (in v2.2.8).:
- wp-content/plugins/carousel-slider/includes/Supports/FormFields/SelectPosts.php:18
- wp-content/plugins/carousel-slider/modules/PostCarousel/Helper.php:31
- wp-content/plugins/carousel-slider/modules/PostCarousel/Template.php:96
On each file:line above, there’s an associative array setting a value for ‘post_type’. Either change from:
'post_type' => 'post' # or whatever your desired typeOr, for multiple types, set a new array:
'post_type' => array('post', 'page', 'whatever') # Replace these three array items with whatever you need- This reply was modified 2 years, 3 months ago by atkulp. Reason: added fixes
Forum: Plugins
In reply to: [Carousel Slider] All carousels stopped working with latest updateAt this time the plugin is not usable at all. I’ve tried categories, latest, tags, and the results are wrong. The query is just broken.
I just noticed that the query is hard-coded for post type of “post”. I use several custom post types so that would explain 0 rows being returned. Can that be changed to either remove it or let it be set?
SELECT wp_posts.ID
FROM wp_posts
LEFT JOIN wp_term_relationships
ON (wp_posts.ID = wp_term_relationships.object_id)
WHERE 1=1
AND ( wp_term_relationships.term_taxonomy_id IN (238) )
AND wp_posts.post_type = ‘post’ <<<<<<<
AND ((wp_posts.post_status = ‘publish’))
GROUP BY wp_posts.ID
ORDER BY wp_posts.ID DESC
LIMIT 0, 1It would also be great to have some settings around how the post content is displayed. For example, toggle metadata. Maybe even easier would just be a full, condensed, and tight version to choose from.
The errors all seemed to be related to being cut off. If you enable it, the entire file becomes a single line, but perhaps there’s a limit somewhere on line length so it’s just truncated.
Forum: Plugins
In reply to: [W3 Total Cache] Performance warning from WordPressLatest. 6.2.2
Forum: Plugins
In reply to: [W3 Total Cache] Performance warning from WordPressThanks for the response! I disabled and deauthorized page speed and cleared the object cache, but I continue to get the critical perf warning and it’s still caching the 530kb blob. What other step do I need to follow?
Forum: Plugins
In reply to: [Gutenberg] How do I enable custom fields in the Gutenberg editor@lolobu deserves upvotes! I was just struggling with this and was frustrated that the WP documentation is outdated (referencing Options instead of Preferences), but then it didn’t matter anyway due to ACF. Thanks for posting this easy fix!
great! that works nicely.
Thanks for taking the time so far. I’m still working on this, but it’s between some other things. I hope to reply in the next day or two.
I’m using the CPT UI plugin. My custom post type has a rewrite set like this:
$args = [ "label" => __( "Apps/Reviews", "darknews-pro-child" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => "", "rest_controller_class" => "WP_REST_Posts_Controller", "rest_namespace" => "wp/v2", "has_archive" => false, "show_in_menu" => true, "show_in_nav_menus" => true, "delete_with_user" => false, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "can_export" => true, ======>>>> "rewrite" => [ "slug" => "review", "with_front" => false ], "query_var" => true, "menu_position" => 5, "menu_icon" => "dashicons-location-alt", "supports" => [ "title", "editor", "thumbnail", "excerpt", "trackbacks", "custom-fields", "comments", "revisions", "author", "page-attributes" ], "taxonomies" => [ "category", "post_tag", "app_language", "app_genre", "review_supported_headset", "play_areas", "post_status" ], "show_in_graphql" => false, ];Does that help? I’m still learning how to customize my WP instance so if there’s a better way to do this, I’m ready to learn!
my site is https://www.vrvoyaging.com