djbdijkstra
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Performance Pack] This not generating thumbnailWhat should be the rewrite rules for a “normal” (Linux/Apache) hosting?
my wordpress-url is https://www.johannaengelina.nl/wordpress
and my site-url is https://www.johannaengelina.nlThe thumbs are not generated dynamicly (see my other post)
and i think it has to do with this…
A test-site on a subdomain (with both url’s equal) is working properly!Thanks, DJ
Forum: Plugins
In reply to: [WP Performance Pack] Images not generatedUpdate: today I copied the site to dev.johanneengelina.nl and deleted some thumbs.. They were nicely regenerated! It looks like it has to do with the fact that the “live” site (www.johannaengelina.nl is installed in /wordpress and the root index.php points to /wordpress/wp-blog-header.php
How can i solve this? The site is working fine for the rest…
Thanks, DJ
Forum: Plugins
In reply to: [WP Performance Pack] Images not generatedIn the mean time i generated most thumbnails except some of the mentioned page, because it is the live site… I deleted 5 of the 202×202 thumbs for testing. They are not regenerated.
Forum: Plugins
In reply to: [WP Performance Pack] Images not generatedThe problem is, that the url of the picture in the error-message is not correct…
there is an extra “/wordpress” after /uploads and i don’t know where that comes from… this way the path doesn’t exist../home/johannaengelina.nl/public_html/wordpress/wp-content/uploads/wordpress/Historisch/danaadrianarev.jpg should be:
/home/johannaengelina.nl/public_html/wordpress/wp-content/uploads/Historisch/danaadrianarev.jpgAnd refers to https://www.johannaengelina.nl/wordpress/wp-content/uploads/Historisch/danaadrianarev.jpg
Forum: Plugins
In reply to: [ACF Photo Gallery Field] Images sortable but not displayed in correct orderThanks, keep me posted if possible!
Forum: Plugins
In reply to: [ACF Photo Gallery Field] Images sortable but not displayed in correct orderthis is the query:
SELECT DISTINCT wp_posts.*
FROM wp_posts JOIN wp_icl_translations wpml_translations
ON wp_posts.ID = wpml_translations.element_id
AND wpml_translations.element_type = CONCAT(‘post_’, wp_posts.post_type)
WHERE 1=1
AND wp_posts.ID IN (61639,61374,61630,53763,53772,53766,53541,53538,52620,51930,51909,51753,51693,51525,51522,51447,51408,49659,49404,49311,49305,49320,49323,47939,47588,47312,47321,47291,47078,43459,43495,43474,43501,43498,44119,44025,44131,47963,48044,47984,47981,47918,47903,47975)
AND wp_posts.post_type = ‘attachment’
AND ((wp_posts.post_status = ‘inherit’))
AND ( ( ( wpml_translations.language_code = ‘nl’
OR 0 )
AND wp_posts.post_type IN (‘post’,’page’,’attachment’,’product’,’product_variation’,’cookielawinfo’,’templatera’ ) )
OR wp_posts.post_type NOT IN (‘post’,’page’,’attachment’,’product’,’product_variation’,’cookielawinfo’,’templatera’ ) )
ORDER BY wp_posts.post_modified DESCLooks like the arguments in $args are not passed through by wp_parse_args in wp_includes/post.php
Forum: Plugins
In reply to: [ACF Photo Gallery Field] Images sortable but not displayed in correct order… by the wayan example, with testcode is on the website https://test.johannaengelina.nl/Winkel/weektocht-zeilen-ijsselmeer-waddenzee/
Forum: Plugins
In reply to: [ACF Photo Gallery Field] Images sortable but not displayed in correct orderI have the same problem. I found out that the order of the image-I’s is changed in the get_posts ($args) statement in act_photo_gallery.php
Where
$args = array( ‘post_type’ => ‘attachment’, ‘posts_per_page’ => -1, ‘post__in’ => $images, ‘order’ => $order, ‘orderby’ => $orderby );I also call the function like this:
$images = acf_photo_gallery(‘foto_gallerij’, $post->ID, ‘ASC’, ‘post__in’);
and changed:
function acf_photo_gallery($field = null, $post_id, $order = ‘ASC’, $orderby = ‘post__in’)
echo $field . ‘<br />’;
echo $orderby . ‘<br />’ . $order . ‘<br />’;
$images = get_post_meta($post_id, $field, true); echo $images . ‘<br />’; // 1
return acf_photo_gallery_make_images($images, $field, $post_id, $order, $orderby);
}The $order & $orderby are passed thru to the last function (…make_images) but are not correctly used by get_posts
Hoping on a solution… regards, Derk-Jan
by the way i don’t understand why function get_posts() can be declared multiple times in my WordPress installation (ACF, Jetpack (not activated), MPC-massive (Addons), WPML)