status4
Forum Replies Created
-
Forum: Plugins
In reply to: [Seriously Simple Podcasting] Feed validation fails due to HTTPSHey Frank, did you solved this? Facing the same issue at the moment.
Forum: Plugins
In reply to: [Crazy Lazy] Works on page but not on front page loopGot the same issue and since there was no update I had a look at it myself.
Quick Fix:
public static function prepare_images($content) { /* No lazy images? */ if ( strpos($content, '-image') === false ) { return $content; } /* Empty gif */ $null = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='; /* Replace images */ return preg_replace( array( '#(<img(.*?)class=["\'](.*?(?:wp-image-|wp-post-image|attachment-post-thumbnail).+?)["\'](.+?)src=["\'](.+?)["\'](.*?)(/?)>)#', '#(<img(.*?)src=["\'](.+?)["\'](.+?)class=["\'](.*?(?:wp-image-|wp-post-image).+?)["\'](.*?)(/?)>)#' ), array( '<img${2}class="crazy_lazy ${3}" src="' .$null. '" ${4} data-src="${5}" ${6} style="display:none" ${7}><noscript>${1}</noscript>', '<img${2}src="' .$null. '" data-src="${3}" ${4} class="crazy_lazy ${5}" ${6} style="display:none" ${7}><noscript>${1}</noscript>' ), $content ); }
… find method in crazy_lazy.class.php and replace it.
Tank you for the fast reply. Yes, WP Rocket is great. If it′s not possible to get wordfence caching working with query strings then I am going to use it also.
Hi Bogdan, I am facing the same problem. Did you found a solution to cache pages with query string?
Forum: Fixing WordPress
In reply to: Post types – duplicatesI will give it a try.
The posts are created automatically, so I have no chance to give it a name by myself.
Forum: Fixing WordPress
In reply to: Post types – duplicatesAbove is my code.
Hi Peter. This is done. It′s https://example.org/lifestream/postname
But it seems like only the last part is used to identify the post.
E.g. I created a normal post called “Test 1” which has the slug “post-1”. Then I create a custom post type called “Test 1” and it automatically get the slug “test-1” too. And when I call https://example.org/lifestream/test-1 wp redirects to https://example.org/test-1 (the normal post type article created first)
Forum: Hacks
In reply to: get_posts won't filter by post_typeHey, this is what I am doing at the moment too. But I thought there would be a “better” solution. Thanks anyway for your reply
Forum: Hacks
In reply to: get_posts won't filter by post_typeHey, did you find a solution?
Forum: Plugins
In reply to: Custom Post Types, Categories and PaginationYes, this works for me too. But I like to have dynmaic categories and don′t want to add a page template for every category.
Forum: Fixing WordPress
In reply to: Custom Post Types and Category NavigationHey, did you find a solution? I am facing the same problem: https://www.ads-software.com/support/topic/custom-post-types-and-archive-pages
Forum: Plugins
In reply to: Custom Post Types, Categories and PaginationHey Falkencreative. Did you find a solution? I got the same problem: https://www.ads-software.com/support/topic/custom-post-types-and-archive-pages
Thanks a lot!
Forum: Fixing WordPress
In reply to: custom post types and archive pagesIt seems that $wp_query->max_num_pages has the wrong value. But why? Do I register the taxonomies (I like to use categories and tags for my custom post types) correctly?
Forum: Plugins
In reply to: xml-rpc questionHey tbotnik, I′ve got the same problem. Did you found a solution? Thanks a lot.
Status4