clickable title of 2 post on mainpage USING functions.php

here is answer 🙂 add_action(‘generate_after_header’, ‘work_only_on_front_page’, 999); function work_only_on_front_page(){ if ( is_front_page() ) { echo ‘ any text with divs’; $args = array( ‘posts_per_page’ => 2, // we need only the latest post, so get that post only ‘cat’ => ‘1’ // Use the category id, can also replace with category_name which uses category slug … Read more

How to Delete Posts by title?

Like keepkalm said I’d find the list of post IDs from the database: select id, post_title FROM wp_posts where post_title like ‘%Pharmaton%’ or post_title like ‘%Winston Blu%’ or post_title like ‘%Kefir%’ or post_title like ‘%Tetradox%’ or post_title like ‘%Passport Sco%’; and then use the list of IDs with wp-cli’s wp post delete which accepts a … Read more

How do I add e-mail subscription functionality

Many plugins currently available allow you to enable this feature on your site. My favorite is Jetpack Subscriptions for reasons including: Very much up-to-date, well-maintained plugin Emails sent from WordPress.com servers, so there’s absolutely no load on your servers (Make sure you disable all the unnecessary modules activated by default when you activate Jetpack by … Read more

Button generate a random URL [closed]

It looks like your code works as written. Alternatively, you can generate an alphanumeric string using uniqid()… <a href=”http://meet.jit.si/<?php echo uniqid()?>” target=”_blank”> click here </a> EDIT: Modified code based on additional information. This should create a shortcode that allows you to easily add a button to a unique meeting link by adding [rand_jitsi_btn] to a … Read more