WordPress.org Forums » All Posts https://wordpress.org/support/forum/wp-advanced/feed/ Wed, 07 Feb 2024 10:57:55 +0000 https://bbpress.org/?v=2.7.0-alpha-2 en-US https://wordpress.org/support/topic/extending-a-function/#post-17405299 <![CDATA[Reply To: Extending a function]]> https://wordpress.org/support/topic/extending-a-function/#post-17405299 Wed, 07 Feb 2024 10:32:07 +0000 sacconi I think my own code has some errors because the shortcode outputs nothing. I can’t see where is the problem. I checked the code with https://phpcodechecker.com/

]]>
https://wordpress.org/support/topic/custom-query-for-filter-on-edit-php-post-listing/#post-17405252 <![CDATA[Custom Query For Filter On edit.php Post Listing]]> https://wordpress.org/support/topic/custom-query-for-filter-on-edit-php-post-listing/#post-17405252 Wed, 07 Feb 2024 10:20:45 +0000 potentdevelopment I am adding couple of extra inputs to the edit.php filters via

add_action(‘manage_posts_extra_tablenav’, array($this, ‘add_view_search_orders’));

I’m using the add_filter(‘parse_query’, array($this, ‘parse_sku_price’)); filter to try and modify the query, BUT to achieve what I want, I need to be able to use $wpdb and write my own custom query with subqueries.

How do I go about creating a brand new query instead of modifying the existing $query object via $meta_query and $query->set( ‘meta_query’, $meta_query );

Essentially when someone filters, I want to start a whole new query using $wpdb.

Thank You

]]>
https://wordpress.org/support/topic/carousel-tiles-box-shadow-issue/#post-17405179 <![CDATA[Carousel tiles box shadow issue]]> https://wordpress.org/support/topic/carousel-tiles-box-shadow-issue/#post-17405179 Wed, 07 Feb 2024 10:00:40 +0000 pgdev Hi all, The box shadow on the carousel tiles doesn’t appear rounded, even though I applied border radius to the tiles. Could anyone please point out the issue with solution ?

Reference img :
https://prnt.sc/x7DA5cayN7Tl

Code responsible:

.swiper-slide {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    height: 220px
;
    border-radius: 22px;
    box-shadow: 6px 6px 6px #00000029 !important;
}

Thanking you in advance.

]]>
https://wordpress.org/support/topic/extending-a-function/#post-17405144 <![CDATA[Reply To: Extending a function]]> https://wordpress.org/support/topic/extending-a-function/#post-17405144 Wed, 07 Feb 2024 09:49:36 +0000 sacconi Since I desire more languages I’ll try to undestand better your code

]]>
https://wordpress.org/support/topic/adding-a-search-criterium-in-my-custome-search-box/page/2/#post-17405139 <![CDATA[Reply To: Adding a search criterium in my custom search box]]> https://wordpress.org/support/topic/adding-a-search-criterium-in-my-custome-search-box/page/2/#post-17405139 Wed, 07 Feb 2024 09:48:37 +0000 sacconi Currently I have saved for function_camere an integer like 2 without the +

If I delete the “+” in the code and have just integer numbers would I see again my previous selections in the post editor custom field? The integer+ “+” should be visible only in the search box selector, corresponding to a specific logic of search (showing the apartments with 2 OR MORE bedrooms (2+))

]]>
https://wordpress.org/support/topic/right-filter-for-taxonomy-in-german/#post-17404946 <![CDATA[Reply To: Right filter for taxonomy in german]]> https://wordpress.org/support/topic/right-filter-for-taxonomy-in-german/#post-17404946 Wed, 07 Feb 2024 08:56:26 +0000 sacconi am I approaching the goal?

add_filter('get_the_archive_title', function( $title_archive ) {
   $locale = get_locale();
   if ('de_DE' == $locale ) {
     $title_archive__de =get_queried_object ( $term->term_id, 'function_tipologia', true );
     if ( ! empty( $title_archive_de )) {
        return $title_archive__de;
     } else {
        return $title_archive;
     }
   } else {
     return $title_archive;
   }
}, 10, 2 );
]]>
https://wordpress.org/support/topic/lookup-country-for-existing-ip/#post-17404721 <![CDATA[Reply To: Lookup country for existing IP]]> https://wordpress.org/support/topic/lookup-country-for-existing-ip/#post-17404721 Wed, 07 Feb 2024 07:32:12 +0000 kirilb ok thanks. And what geolocation API service could you recommend?

]]>
https://wordpress.org/support/topic/is-it-possible-to-add-an-element-to-formatting-toolbar-of-a-core-block-usin-php/#post-17404566 <![CDATA[Reply To: Is it possible to add an element to formatting toolbar of a core block usin PHP?]]> https://wordpress.org/support/topic/is-it-possible-to-add-an-element-to-formatting-toolbar-of-a-core-block-usin-php/#post-17404566 Wed, 07 Feb 2024 06:29:38 +0000 MilesWeb Hi @julianoe,
As of the last update in January 2022, directly adding elements to the formatting toolbar of a core block in WordPress through PHP is not a standard practice. WordPress primarily relies on JavaScript for such customizations due to the dynamic nature of the block editor. While it might appear complex, using JavaScript ensures a more flexible and interactive user experience. For the latest information, check the WordPress documentation or community discussions for updates on PHP-based toolbar customization.
Hope this information is helpful.

]]>
https://wordpress.org/support/topic/customize-import-wp-all-import/#post-17404220 <![CDATA[Reply To: customize import wp all import]]> https://wordpress.org/support/topic/customize-import-wp-all-import/#post-17404220 Wed, 07 Feb 2024 00:42:42 +0000 Support Moderator Thread continues at https://wordpress.org/support/topic/customize-import-wp-all-import-2/

]]>
https://wordpress.org/support/topic/manage-multiple-stock-locations-on-woocommerce/#post-17404204 <![CDATA[Reply To: Manage multiple stock locations on woocommerce]]> https://wordpress.org/support/topic/manage-multiple-stock-locations-on-woocommerce/#post-17404204 Wed, 07 Feb 2024 00:37:16 +0000 Support Moderator Thread continues at https://wordpress.org/support/topic/manage-multiple-stock-locations-and-send-to-external-api/

]]>