Wordpress

Cookie notice GDPR wordpress plugin

Cookie Notice GDPR displays a cookie notice at the bottom of the site for first-time visitors with customizable text, button, and GDPR policy link. Description Cookie Notice GDPR allows WordPress site owners to display a cookie consent notice at the bottom of their website. Features include: * Customizable text for the cookie notice. * Customizable "Accept" button color. * Customizable background color. * Customizable...

read more

Display Category description in WordPress

If you want to add a category description to the category page, you need to open a file that displays categories in your theme, usually this is a file archive.php or category.php and add this code to it <?php echo category_description(get_the_category()[0]->cat_ID); ?> Also you can use function in file functions.php function cat_description(){ if ( is_category() ){ echo category_description(get_the_category()[0]->cat_ID); } } To...

read more

Show post views without plugin

If you need to show the number of posts or pages on your WordPress site without using a plugin, you can write a simple function and add it to the functions.php Wordpress function simple_post_views( $post_ID ) { global $count_key,$count; $count_key = 'simple_post_views_count'; $count = get_post_meta( $post_ID, $count_key, true ); if ( $count == '' ) { $count = 0; update_post_meta( $post_ID,...

read more

q-Shortcodes

This plugin allows you to add the following shortcodes to a page or post: Columns (12 col grid) Buttons Buttons with Ionicons icons or FontAwesome icons Toggles Tabs Icons block Services block Dividers Clear Note: If you set Divider Style - Double, you also need  set Divider Height - 4px Customizer settings Plugin Customizer contains the following settings: Change Button background, Button color, Button icon color...

read more

Creating a simple shortcode button

In this tutorial I create simple button shortcode with three attributes: url target background Put this code in your functions.php file Wordpress function btn_big_shortcode( $atts, $content = null ){ $args = shortcode_atts( array( 'url' => '', 'target' => 'self', 'background' => '#F39D77', ), $atts ); $out = '<div class="btn-big"> <a style="background:'....

read more

Delete post revisions and disable revisions

This WordPress plugin allows you delete all post revisions and disable post revisions. Usage: 1. After activation plugin settings available on Del-Post-Rev settings page 2. To just delete the current post revisions, click the button "Delete post revisions and Save" 3. To disable revisions, check the checkbox "Disable post revisions" Download The SQL query that is used to delete post revisions: $wpdb->query(" ...

read more

Ajax message

This wordpress plugin allows you send messages to email from a page, post or from any other location that you specify in template. It can be used as a shortcode or a widget. Has a admin settings page where you can change the names of fields, enable or disable captcha, add custom CSS code. Download Live Demo [ae_message]

read more