Php page with filters for custom fields

I will share how I achieved to implement what I consider to be an advanced custom search using WordPress out-of-the-box functionalities and ACF, without custom PHP scripts that are questionable. Creating a custom post type Adding a custom field to the custom post type Creating the search form Outputting the search results Custom Post Type: … Read more

Change letters for day name

In the comments, @vancoder points out that it appears day names are not capitalized in Norwegian. If you require that they be capitalized, you could do something like this: ucfirst( get_the_date( ‘l’, $post ) ) . get_the_date( ‘ d.m.Y’, $post ) . get_the_time( ‘ H:i’, $post ); …using PHP’s ucfirst() to force the first character … Read more

Let users sell video in my website [closed]

If you have an education website LearnDash could be a good choice. It’s a good plugin but doesn’t include a free version. Users can register as teacher and sell their courses. Other option could be the combination of WooCommerce and a marketplace plugin like Dokan or YITH WooCommerce Multi Vendor. Both has nearly same features. … Read more

My plugins are ending up above the header?

Shortcodes should return their content, never echo it. From the add_shortcode() docs: Note that the function called by the shortcode should never produce an output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results. But the functions … Read more

How to set “split_on_numerics” to false in ElasticSearch mapping using ElasticPress? (for proper SKU search in WooCommerce) [closed]

This one was tough, but here is the solution for this! First, you will need to use SSH to access the server where you have ElasticSearch installed. After that, you will want to perform these commands: This one will first close your index, only then you can perform changes: curl -X POST http://localhost:9200/YOUR-INDEX/_close?pretty This one … Read more