WordPress.org Forums » All Posts https://wordpress.org/support/forum/wp-advanced/feed/ Tue, 11 Mar 2025 15:00:53 +0000 https://bbpress.org/?v=2.7.0-alpha-2 en-US https://wordpress.org/support/topic/remove-block-under-header/#post-18355201 <![CDATA[Reply To: remove block under header]]> https://wordpress.org/support/topic/remove-block-under-header/#post-18355201 Tue, 11 Mar 2025 14:19:27 +0000 holdthatmayo Thanks everyone for your assistance!

]]>
https://wordpress.org/support/topic/easiest-way-to-delete-scheduled-actions/#post-18355045 <![CDATA[Reply To: Easiest way to delete Scheduled Actions]]> https://wordpress.org/support/topic/easiest-way-to-delete-scheduled-actions/#post-18355045 Tue, 11 Mar 2025 13:27:37 +0000 heggyy It’s related to a bug (that I don’t know how to fix) where certain products keep getting duplicated or whatever, so that they appear over and over and over again. When I tried deleting them from admin, it triggered even more issues as there is no products then that the required info should go to (warehouse (product names, quantities, prices, stock etc) -> eshop).

Unable to reach the person who wrote that cronjob for us too, so I’ve just turned everything off and want to clean up the scheduled actions without needing to use SSH or SQL.

]]>
https://wordpress.org/support/topic/easiest-way-to-delete-scheduled-actions/#post-18355029 <![CDATA[Reply To: Easiest way to delete Scheduled Actions]]> https://wordpress.org/support/topic/easiest-way-to-delete-scheduled-actions/#post-18355029 Tue, 11 Mar 2025 13:22:02 +0000 rollybueno Hi,

Wow, more than 800,000 jobs! There are few plugins that can do this such as:

Give it a try.

My advice: Audit your site as having 800,000 corn jobs is way beyond normal.

Cheers!

]]>
https://wordpress.org/support/topic/easiest-way-to-delete-scheduled-actions/#post-18354858 <![CDATA[Easiest way to delete Scheduled Actions]]> https://wordpress.org/support/topic/easiest-way-to-delete-scheduled-actions/#post-18354858 Tue, 11 Mar 2025 12:13:08 +0000 heggyy I have a massive amount of completed actions and product related cronjob always crashes the server. How can I delete all this unnecessary crap and make sure all the product (woocommerce) update related cronjobs are gone? The cronjobs have now been turned off on the server side as well as the import plugins used.

]]>
https://wordpress.org/support/topic/how-to-setup-correctly-a-custom-classic-theme/#post-18354484 <![CDATA[How to setup correctly a custom classic theme?]]> https://wordpress.org/support/topic/how-to-setup-correctly-a-custom-classic-theme/#post-18354484 Tue, 11 Mar 2025 09:39:47 +0000 ioclaudio Hi,

I’m creating a classic WordPress theme. I’d like to create a configuration class with a plugin_setup method that handles various configurations, such as importing CSS and JavaScript, creating custom post types and taxonomies, and other tasks.

I’ve created a simple setup that currently does nothing, but when I load a basic empty homepage.php page, the plugin_setup method is called twice. Is it possible to prevent the plugin_setup method from being called twice?

This is the code I’m using:

Code of functions.php:

if ( ! class_exists( 'DIS_ThemeManager' ) ) {
require_once get_template_directory() . '/classes/theme-manager.php';
}
if ( class_exists( 'DIS_ThemeManager' ) ) {
error_log("Running after_setup_theme");
add_action(
'after_setup_theme',
function() {
$theme_manager = DIS_ThemeManager::get_instance();
$theme_manager->plugin_setup();
}
);
}

Code of theme-manager.php :

class DIS_ThemeManager {
protected static $instance = null;


private function __construct() {}

public static function get_instance() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}

public function plugin_setup() {
}
}

Code of homepage.php:

<?php
// get_header();
?>
<main id="main-container" class="main-container redbrown" role="main">
HELLO
</main>

With this setup, the add_action method and plugin_setup are called twice.

If I uncomment get_header() in homepage.php, they are called three times.

Why does this happen? Is it possible to prevent this behavior?

Thank you

Claudio

]]>
https://wordpress.org/support/topic/how-to-ensure-no-duplicate-posts-with-multiple-query-blocks/#post-18353053 <![CDATA[How to ensure no duplicate posts with multiple Query blocks]]> https://wordpress.org/support/topic/how-to-ensure-no-duplicate-posts-with-multiple-query-blocks/#post-18353053 Mon, 10 Mar 2025 16:04:20 +0000 toneburst I’d like to extend the Query block such that the same post will not be displayed multiple times, where multiple Query blocks are inserted in the same page/template.

The linked site’s homepage uses a Classic theme. The top section of the homepage features recent posts in particular post categories. Even when the same category is assigned to multiple “slots’ in this top section, the same post will not appear more than once. Additionally, none of the post featured in the top section will appear in the bottom section.

I was able to achieve this in the site’s Classic theme by maintaining a running list of all the posts previously displayed in the top section, and modifying the multiple query loops in the page’s PHP template to feed this list as an array into each query, as an exclusion.

Can the same thing be achieved in an FSE theme using the an extended version of the Query block, and if so, what would be the steps required to achieve this?

I’m not necessarily looking for details and example code at this stage, just need to know if it’s possible to achieve this at all, and where I might start, if so.

I’m looking to create a new FSE theme for the site, and I think I can make it do everything I need using just stock WP blocks, apart from this one key feature of the old theme.

Any tips greatly appreciated!

]]>
https://wordpress.org/support/topic/adding-a-parameter-to-a-custom-post/#post-18352354 <![CDATA[Reply To: Adding a parameter to a custom post]]> https://wordpress.org/support/topic/adding-a-parameter-to-a-custom-post/#post-18352354 Mon, 10 Mar 2025 11:23:07 +0000 VEFA AKIN AKTANSEL Yes you absolutely can do it.

]]>
https://wordpress.org/support/topic/how-to-create-an-advanced-custom-made-registration-wizard/#post-18352313 <![CDATA[Reply To: How to create an advanced custom made registration wizard?]]> https://wordpress.org/support/topic/how-to-create-an-advanced-custom-made-registration-wizard/#post-18352313 Mon, 10 Mar 2025 11:07:38 +0000 VEFA AKIN AKTANSEL the effect you mention is called smooth scroll and you can find lots of code samples on developer sites.

]]>
https://wordpress.org/support/topic/i-want-to-make-a-slideshow-when-i-click-one-must-opening-another-slideshow/#post-18351804 <![CDATA[Reply To: i want to make a slideshow, when i click one must opening another slideshow]]> https://wordpress.org/support/topic/i-want-to-make-a-slideshow-when-i-click-one-must-opening-another-slideshow/#post-18351804 Mon, 10 Mar 2025 07:19:15 +0000 volkantolga thanks @vefaakin sağol dostum. Copying those css and js scripts in functions.php is enough?

]]>
https://wordpress.org/support/topic/how-to-add-favicon-background-color-in-google-search-results/#post-18351792 <![CDATA[Reply To: How to Add Favicon Background Color in Google Search Results?]]> https://wordpress.org/support/topic/how-to-add-favicon-background-color-in-google-search-results/#post-18351792 Mon, 10 Mar 2025 07:10:44 +0000 henyjack To customize the background color of your favicon in Google search results, you need to use a properly formatted favicon with a transparent background. Here are some key steps to achieve this effect: 1. Use a Transparent PNG or SVG

  • Ensure your favicon is a transparent PNG (preferably 48x48px or 512x512px) or an SVG file.
  • If your favicon has a white background, Google may display it as a square instead of applying a dark background.

2. Upload via WordPress Customizer

  • Go to Appearance > Customize > Site Identity and upload your transparent favicon under Site Icon.
  • WordPress recommends a 512x512px image for best results.

3. Manually Add Favicon in the <head>

If the automatic upload doesn’t work, try adding this code to your header.php file inside <head>:

<link rel="icon" type="image/png" href="https://yourwebsite.com/favicon.png">

Make sure to replace the URL with the actual favicon file location. 4. Check Google’s Favicon Guidelines

  • Google fetches favicons from the root directory or the location specified in your <link> tag.
  • After updating your favicon, request a re-crawl in Google Search Console under Settings > Remove URLs to refresh it faster.

Having the right favicon enhances branding, just like how Irish sea moss gel enhances health with its natural minerals! Hope this helps—let me know if you need further clarification. 😊

]]>