Mahangu Weerasinghe
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Issues with Block-based WidgetsRight! If you need more customization, the Query Loop block may be worth a look. It is an advanced block that allows you to display posts based on specified parameters. You can think of it as a more complex and powerful Latest Posts Block. See the Query Loop block documentation for more.
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe. Reason: clarity
Forum: Developing with WordPress
In reply to: Multiple Parent PageEvery WordPress page can only have one parent page and one permalink URL.
Here, it sounds like you want to make https://chamberlink.co.za/ohs-act-training/ a sub page of https://chamberlink.co.za/online-courses.
If you do do that, all sub pages of
ohs-act-training
will automatically begin showing up athttps://chamberlink.co.za/online-courses/ohs-act-training/sub-page-name
.You could potentially get around this by creating duplicate copies of pages with different parent pages, but this will be messy and is usually not recommended from a SEO perspective, as search engines can penalise sites for duplicate content.
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe. Reason: clarity
Forum: Everything else WordPress
In reply to: How to Create a Dual Navigation Dropdown Selector WidgetIt sounds like you’re looking for a form plugin that supports conditional logic. You can look through the most popular forum plugins at that link and see if any of them support what you are trying to do. Some should!
Forum: Everything else WordPress
In reply to: empty space in desktop view due to post shown in cards.Have you tried pinging the theme developer in the thread using their username
@wpcalc
? As noted by George above, they already replied once in that thread and you then took more than two weeks to reply to them after that.Chances are that they may respond if you ping them again. If you re-ping them, be sure to link them to this thread too, so they can see what we have attempted here as well.
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe. Reason: clarity
Forum: Fixing WordPress
In reply to: Featured Images Appear BlurryWhile WordPress does generate thumbnails for your images, these are generated as separate images. The original image you uploaded is not modified automatically.
When selecting a featured image for your post, you can select the original/large image you uploaded to the Media Library. When setting the featured image for a post, look under
Attachment Details
on the right and it will show the details of the image:your_image_name.jpg
July 18, 2024
8 MB
4702 by 2821 pixels^ It should not say
400 by 200 pixels
here. There should be a higher number as the image you want to set is the original one with the higher resolution. Look for the variant of your image with the higher resolution and insert that instead.Forum: Developing with WordPress
In reply to: Redirect to All Custom post typesOK, if that’s the code you want to redirect after, have you tried adding the wp_redirect() function just after the
foreach
loop?foreach ( $fields as $field_name => $flag ) {
if ( !empty( $field = filter_input( INPUT_POST, $field_name, $flag )) ) {
update_post_meta( $post_id, $field_name, sanitize_text_field( $field ) );
} else {
delete_post_meta( $post_id, $field_name );
}
}
// Redirect to the the custom post type edit page
wp_redirect( admin_url( 'edit.php?post_type=your_custom_post_type' ) );
exit;Of course, you will need to replace
your_custom_post_type
above with the name/slug of your custom post type.If you continue to have issues with this, could you please enable debugging in WordPress and send over the latest error log entries you see?
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe. Reason: code formatting
Forum: Fixing WordPress
In reply to: Featured Images Appear BlurryI think I see what you mean. For the first two posts you created (the last two posts on the front page right now), the thumbnail images you have used are –
1) https://knewsgr.com/wp-content/uploads/2024/05/newjeans-1.jpg
2) https://knewsgr.com/wp-content/uploads/2024/05/bts-quiz-pic-1.jpg
The two posts after that use these two images:
3) https://knewsgr.com/wp-content/uploads/2024/06/bts_jin_military_4_1244x700-400×200.jpeg
4) https://knewsgr.com/wp-content/uploads/2024/06/seventeen-unesco-400×200.jpg
If you click on these 4 files and view them individually, you will see that #1 and #2 are much higher resolution (i.e the image is larger) than the
400x200
pixel thumbnail images you are using for #3 and #3. Thus, when the larger images are scaled down for your frontpage, they look better / less blurry / higher quality.If you edit the later posts to use larger variants of those images as featured images, their quality on the frontpage will improve as well.
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe.
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe.
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe.
Forum: Developing with WordPress
In reply to: Issues with Block-based WidgetsAbout the Latest Posts block widget, should I install it as a plugin?
The Latest Posts block comes with the WordPress Block Editor and the WordPress Site Editor. You can click the block inserter (
+
) and then search for theLatest Posts
block to find and insert it.About Block Themes, in the WordPress theme directory, I can’t find Astra in the “block themes” tab, but I can find it in the “popular” tab. This means Astra is not a Block Theme I guess?
That’s correct. If a theme doesn’t appear under Block themes in the WordPress theme directory, then it is not a block theme and is not compatible with the WordPress Site Editor.
- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe. Reason: typo
Forum: Developing with WordPress
In reply to: Redirect to All Custom post typesI’m not sure how to help you further because you pasted only one line of code above, without any other explanation or context.
If you detail your issue more clearly, including explaining what plugin you are trying to develop and also show us the complete code you are working with, we are happy to have another look and see how we can assist you.
Forum: Everything else WordPress
In reply to: Photos are not displaying properly on my websiteI see what you mean. There is likely a misconfiguration in how you are setting up the portfolio section.
Are you following the steps outlined under
Portfolio Section
in the documentation for your theme, Construction Light?For more help with setting up your portfolio, you can reach out to the theme developer, Sparkle Themes at – https://sparklewpthemes.com/support/#contact
Since they created the theme, they will have the best idea of how to set up the portfolio section correctly.
Forum: Fixing WordPress
In reply to: problem with category section and youtube linkWhen i EXACTLY copy iframe src from youtube from category/island/ that is working and copy to category/severnithajsko/ and update category/severnithajsko/ with this iframe src, this iframe src will disappear.
Could you please detail how you are editing these Category Pages? Are you modifying the theme files directly or are you using the new Site Editor?
Forum: Fixing WordPress
In reply to: Pagination Issues in WordPressCould you please copy and paste the relevant sections of the Screaming Frog report? For example, Screaming Frog has this documentation on Pagination issues but it’s not clear exactly what the issues are with your site.
Seeing what the Screaming Frog report says will help narrow down the issue so we can try and help you with it.
Forum: Everything else WordPress
In reply to: empty space in desktop view due to post shown in cards.Instead of setting a fixed height for the panels, I would like them to adjust automatically to fit just below the panel above them. This way, there will be no empty spaces between the panels.
From what I can tell, it is not possible to make this change only by modifying your theme’s CSS. It is one that would likely require changes to the structure of your theme itself, and that is best handled either by your theme developer or a third-party developer.
Forum: Fixing WordPress
In reply to: Broken image link when changing image sizeThis can happen when the specific image size you are requesting does not exist in the WordPress media library. It looks like a
150x150
thumbnail is available for this image – https://www.iths.org/wp-content/uploads/tarczy-hornoch-p-150×150.jpg – but a155x155
version doesn’t exist – https://www.iths.org/wp-content/uploads/tarczy-hornoch-p-155×155.jpgThe image sizes used by WordPress are set under
Settings
->Media
->Image sizes
and the default size for thumbnails is150x150
.If you want to try and create a new set of thumbnails at
155x155
, you can try changing this setting underSettings
->Media
->Image sizes
and then using a plugin like Regenerate Thumbnails to recreate your thumbnails.- This reply was modified 4 months, 1 week ago by Mahangu Weerasinghe. Reason: typo
Forum: Fixing WordPress
In reply to: Fluctuations in videos working or notIt looks like you are using Elementor manage your site’s layout and display the videos on your site. Thus, the Elementor plugin support forum will be a good place to ask about this, as they will have the best idea of how the Elementor video widget works.