szekitom
Forum Replies Created
-
Hi,
Not problem, I found a solution( see above)
Tnx, the answer!
Best regards,
Tamás Szekeres
- This reply was modified 3 years, 4 months ago by szekitom.
Hi,
I found a trick or a bug.
If only the post is restricted, the thumbnail will appear on the main page.If the category of the post is also limited, the thumbnail will not appear on the main page.
The picture has same category of the post.
I think the “filter_post_thumbnail” function doesn’t check the “category” and doesn’t allow the thumbnail image. Or I don’t know where the error is, but this could be the solution
I hope the description of my problem is understandable!
Best regards,
Tamás- This reply was modified 3 years, 6 months ago by szekitom.
The filter looks like registered fine.
global $wp_filter;
$hook = ‘um_restrict_post_thumbnail’;
print_r( $wp_filter[$hook] );The output is here
Hi,
Yes I see in the source code, but I’m not programmer, not understood when what happen. UM has also been updated since then, as have the other components (PHP, WP) Now everything is uptodate:
– UM 2.5.1
– PHP 8.0
– WP 6.1
My theme (8Rise) don’t show error message<div class="blocksquare" style="background-image:url(<?php if ( has_post_thumbnail() ) {the_post_thumbnail_url('thumbnail512');} ?>);">but another (Mantra) theme put an error message:
Warning: Trying to access arra offset on value of type bool in
…/mantra/includes/theme-loop.php on line 249
This is theme thumbnail code:function cryout_echo_first_image( $postID ) { $args = array( 'numberposts' => 1, 'order'=> 'ASC', 'post_mime_type' => 'image', 'post_parent' => $postID, 'post_status' => 'any', 'post_type' => 'any', ); $attachments = get_children( $args ); if ($attachments) { foreach($attachments as $attachment) { $image_attributes = wp_get_attachment_image_src( $attachment->ID, 'custom' ) ? wp_get_attachment_image_src( $attachment->ID, 'custom' ) : wp_get_attachment_image_src( $attachment->ID, 'custom' ); return esc_url( $image_attributes[0] ); //this is the line 249 } } }For some reason don’t get the image.
Forum: Themes and Templates
In reply to: [Newses] HTML bug in the codeTnx, the fast answer! But, one more thing…
Why add the “alt” parameter to the “a” tag in the template-tags.php?
$output .= '<a>. '" alt="' . esc_attr(sprintf(__('View all posts in %s', 'newses'), $post_category->name))</strong> . '"> ' . esc_html($post_category->name) . ' </a>';As far as I know, this tag has no “alt” parameter.
tnx, I found it in the Loco, and the translation works fine.
- This reply was modified 3 years, 9 months ago by szekitom.
Tnx for the quick reply! I use “Poedit” and the translated files are uploaded to my site. https://postimg.cc/7CGbgwQ0
But this message is only half translated: https://postimg.cc/Pvpk75YQWhat do I wrong?
Forum: Plugins
In reply to: [Imsanity] shows nothing in the Imsanity columnThanks for the reply! Just to understand: The “Bulk resize images” don’t convert previously uploaded BMP images to JPG?
- This reply was modified 5 years ago by szekitom.