admin

Website Tutorial

What is Google Tag Manager?

Google Tag Manager is a great and useful tool that can help collect and keep analytical data organized, so making decisions about your website is easy and you have everything needed right at your fingertips. By keeping track of all...
Website Tutorial

How to correctly set robots.txt on WordPress website

How to correctly set robots.txt on WordPress website File header rules: The beginning of robots.txt file starts with User-agent:, which is used to specify search engine spiders. If you want to target Google search spiders, you can enter User-agent: Googlebot...
Website Tutorial

How to Create a Blog Page on WordPress

Creating a blog page on WordPress is a straightforward process that allows you to publish and manage your content easily. Here’s a step-by-step guide to help you set up a blog page on your WordPress site: Step 1: Log in...
Website Tutorial

How to Use ChatGPT to Build a Website

Using ChatGPT to assist in building a website can be a great way to streamline the process, especially when it comes to content creation, brainstorming ideas, and debugging code. Here’s a detailed guide on how you can utilize ChatGPT in...
Website Tutorial

How to Change Your Domain Name on WordPress

The batch replacement SQL statement is as follows: Batch replace all old domain names in WordPress website articles with new domain names; UPDATE wp_options SET option_value = replace( option_value, ‘old domain name address’, ‘new domain name address’); UPDATE wp_posts SET...
Website Tutorial

list of all articles in the current category in wordpress

<ul> <?php $singleurl = get_permalink($post_id); $cats = wp_get_post_categories($post->ID); if ($cats) { $args = array( ‘category__in’ => array( $cats[0] ), ‘showposts’ => 50, ‘caller_get_posts’ => 1 ); query_posts($args); if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?> <li<?php if(get_permalink($post_id)==$singleurl){?> class=”video-curry”<?php }?>><a href=”<?php%20the_permalink();%20?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a></li> <?php endwhile; else : ?> <li> Nothing</li> <?php endif; wp_reset_query(); } ?>              ...
Website Tutorial

How to Make Sticky Posts in WordPress

<?php $sticky = get_option(‘sticky_posts’); rsort( $sticky ); $sticky = array_slice( $sticky, 0, 5); query_posts( array( ‘post__in’ => $sticky, ‘caller_get_posts’ => 1 ) ); if (have_posts()) :while (have_posts()) : the_post(); ?> <li><a href=”<?php%20the_permalink();%20?>” target=”_blank”><?php the_title(); ?></a></li> <?php endwhile; endif; ?>
Website Tutorial

Displaying the Last Post Date in WordPress

To display the date of the last post in WordPress, you can use the get_lastpostdate() function, which retrieves the date and time of the last post in the WordPress database. Here’s how you can display it in your theme files...