Title: Mahangu Weerasinghe's Replies | WordPress.org

---

# Mahangu Weerasinghe

  [  ](https://wordpress.org/support/users/lastnode/)

 *   [Profile](https://wordpress.org/support/users/lastnode/)
 *   [Topics Started](https://wordpress.org/support/users/lastnode/topics/)
 *   [Replies Created](https://wordpress.org/support/users/lastnode/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/lastnode/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/lastnode/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/lastnode/engagements/)
 *   [Favorites](https://wordpress.org/support/users/lastnode/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 43 total)

1 [2](https://wordpress.org/support/users/lastnode/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/lastnode/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/lastnode/replies/page/2/?output_format=md)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Issues with Block-based Widgets](https://wordpress.org/support/topic/issues-with-block-based-widgets/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/issues-with-block-based-widgets/#post-17897424)
 * Right! If you need more customization, the [Query Loop block](https://wordpress.org/documentation/article/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](https://wordpress.org/documentation/article/latest-posts-block/).
   See the [Query Loop block documentation](https://wordpress.org/documentation/article/query-loop-block/)
   for more.
    -  This reply was modified 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
      Reason: clarity
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Multiple Parent Page](https://wordpress.org/support/topic/multiple-parent-page/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/multiple-parent-page/#post-17897418)
 * Every WordPress [page](https://wordpress.org/documentation/article/create-pages/)
   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/](https://chamberlink.co.za/ohs-act-training/)
   a sub page of [https://chamberlink.co.za/online-courses](https://chamberlink.co.za/online-courses).
 * If you do do that, all sub pages of `ohs-act-training` will automatically begin
   showing up at `https://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 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
      Reason: clarity
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [How to Create a Dual Navigation Dropdown Selector Widget](https://wordpress.org/support/topic/how-to-create-a-dual-navigation-dropdown-selector-widget/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-create-a-dual-navigation-dropdown-selector-widget/#post-17897404)
 * It sounds like you’re looking for a [form plugin](https://wordpress.org/plugins/search/form/)
   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](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [empty space in desktop view due to post shown in cards.](https://wordpress.org/support/topic/empty-space-in-desktop-view-due-to-post-shown-in-cards/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/empty-space-in-desktop-view-due-to-post-shown-in-cards/#post-17897397)
 * Have you tried pinging the theme developer [in the thread](https://wordpress.org/support/topic/home-page-categories-card-empty-space-in-desktop-view/)
   using their username `@wpcalc`? As [noted](https://wordpress.org/support/topic/empty-space-in-desktop-view-due-to-post-shown-in-cards/#post-17892115)
   by George above, they [already replied once](https://wordpress.org/support/topic/home-page-categories-card-empty-space-in-desktop-view/#post-17853308)
   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 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
      Reason: clarity
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Featured Images Appear Blurry](https://wordpress.org/support/topic/featured-images-appear-blurry-2/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/featured-images-appear-blurry-2/#post-17897379)
 * While 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:
 *     ```wp-block-code
       your_image_name.jpgJuly 18, 20248 MB4702 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](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Redirect to All Custom post types](https://wordpress.org/support/?post_type=topic&p=17891880)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/?post_type=topic&p=17891880#post-17895399)
 * OK, if that’s the code you want to redirect after, have you tried adding the 
   [wp_redirect()](https://developer.wordpress.org/reference/functions/wp_redirect/)
   function just after the `foreach` loop?
 *     ```wp-block-code
        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 pagewp_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](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   and send over the latest error log entries you see?
    -  This reply was modified 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
      Reason: code formatting
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Featured Images Appear Blurry](https://wordpress.org/support/topic/featured-images-appear-blurry-2/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/featured-images-appear-blurry-2/#post-17895082)
 * I 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](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](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](https://knewsgr.com/wp-content/uploads/2024/06/bts_jin_military_4_1244x700-400x200.jpeg)
 * 4) [https://knewsgr.com/wp-content/uploads/2024/06/seventeen-unesco-400×200.jpg](https://knewsgr.com/wp-content/uploads/2024/06/seventeen-unesco-400x200.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 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
    -  This reply was modified 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
    -  This reply was modified 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Issues with Block-based Widgets](https://wordpress.org/support/topic/issues-with-block-based-widgets/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/issues-with-block-based-widgets/#post-17895057)
 * > About [the Latest Posts block](https://wordpress.org/documentation/article/latest-posts-block/)
   > widget, should I install it as a plugin?
 * The Latest Posts block comes with the [WordPress Block Editor](https://wordpress.org/documentation/article/wordpress-block-editor/)
   and the [WordPress Site Editor](https://wordpress.org/documentation/article/site-editor/).
   You can click the block inserter (`+`) and then search for the `Latest Posts`
   block to find and insert it.
 * > About Block Themes, in the [WordPress theme directory](https://wordpress.org/themes/tags/full-site-editing/),
   > 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](https://wordpress.org/themes/tags/full-site-editing/)
   in the [WordPress theme directory](https://wordpress.org/themes/tags/full-site-editing/),
   then it is not a block theme and is not compatible with the [WordPress Site Editor](https://wordpress.org/documentation/article/site-editor/).
    -  This reply was modified 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
      Reason: typo
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Redirect to All Custom post types](https://wordpress.org/support/?post_type=topic&p=17891880)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/?post_type=topic&p=17891880#post-17895043)
 * I’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](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Photos are not displaying properly on my website](https://wordpress.org/support/topic/photos-are-not-displaying-properly-on-my-website/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/photos-are-not-displaying-properly-on-my-website/#post-17895023)
 * I 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](https://docs.sparklewpthemes.com/constructionlight/#portfolio)?
 * For more help with setting up your portfolio, you can reach out to the theme 
   developer, [Sparkle Themes](https://sparklewpthemes.com/) at – [https://sparklewpthemes.com/support/#contact](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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [problem with category section and youtube link](https://wordpress.org/support/topic/problem-with-category-section-and-youtube-link/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-category-section-and-youtube-link/#post-17894714)
 * > When 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](https://wordpress.org/documentation/article/site-editor/)?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pagination Issues in WordPress](https://wordpress.org/support/topic/pagination-issues-in-wordpress/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/pagination-issues-in-wordpress/#post-17894683)
 * Could you please copy and paste the relevant sections of the Screaming Frog report?
   For example, [Screaming Frog has this documentation on Pagination issues](https://www.screamingfrog.co.uk/seo-spider/issues/pagination/)
   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](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [empty space in desktop view due to post shown in cards.](https://wordpress.org/support/topic/empty-space-in-desktop-view-due-to-post-shown-in-cards/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/empty-space-in-desktop-view-due-to-post-shown-in-cards/#post-17894657)
 * > 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Broken image link when changing image size](https://wordpress.org/support/topic/broken-image-link-when-changing-image-size/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/broken-image-link-when-changing-image-size/#post-17894641)
 * This 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](https://www.iths.org/wp-content/uploads/tarczy-hornoch-p-150x150.jpg)–
   but a `155x155` version doesn’t exist – [https://www.iths.org/wp-content/uploads/tarczy-hornoch-p-155×155.jpg](https://www.iths.org/wp-content/uploads/tarczy-hornoch-p-155x155.jpg)
 * The image sizes used by WordPress are set under `Settings` -> `Media` -> `Image
   sizes` and the default size for thumbnails is `150x150`.
 * If you want to try and create a new set of thumbnails at `155x155`, you can try
   changing this setting under `Settings` -> `Media` -> `Image sizes` and then using
   a plugin like [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails)
   to recreate your thumbnails.
    -  This reply was modified 1 year, 11 months ago by [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/).
      Reason: typo
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fluctuations in videos working or not](https://wordpress.org/support/topic/fluctuations-in-videos-working-or-not/)
 *  [Mahangu Weerasinghe](https://wordpress.org/support/users/lastnode/)
 * (@lastnode)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fluctuations-in-videos-working-or-not/#post-17894570)
 * It looks like you are using Elementor manage your site’s layout and display the
   videos on your site. Thus, [the Elementor plugin support forum](https://wordpress.org/support/plugin/elementor/)
   will be a good place to ask about this, as they will have the best idea of how
   the Elementor [video widget](https://elementor.com/help/video-widget/) works.

Viewing 15 replies - 1 through 15 (of 43 total)

1 [2](https://wordpress.org/support/users/lastnode/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/lastnode/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/lastnode/replies/page/2/?output_format=md)