WordPress

Website Tutorial

WordPress completely disables the RSS function

WordPress completely disables the RSS function If you think RSS is useless, you can also disable it directly by adding the following code to the theme functions.php function: function itsme_disable_feed() { wp_die( __( ‘No feed available, please visit the <a...
Website Tutorial

WordPress-loading scripts and styles

If you only import style.css, I can put this on the top of the head <link rel="stylesheet" href="<?php%20echo%20get_stylesheet_uri();%20?>" type="text/css" media="screen" /> If you add other styles, then add another one on the top of the head <link rel="stylesheet" href="<?php%20echo%20get_template_directory_uri();?>/bootstrap.min.css"> Another...
Website Tutorial

WordPress display related articles

WordPress display related articles <?php $tags = wp_get_post_tags($post->ID); if ($tags) { $first_tag = $tags[0]->term_id; $args=array( ‘tag__in’ => array($first_tag), ‘post__not_in’ => array($post->ID), ‘showposts’=>10, ‘caller_get_posts’=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <li><a href=”<?php the_permalink()...
Website Tutorial

What is WordPress Memory Exhausted Error?

WordPress is written in PHP, a server-side programming language. Web servers are just like any other computer. They need memory to efficiently run multiple applications at the same time. Server administrators allocate specific memory sizes to different applications, including PHP....
Website Tutorial

When and Why Do You Need to Copy a Website?

You’ll need to copy a website in different situations to ensure any changes are made and tested on the staging environment before they are pushed live. This is particularly helpful for web agencies that run several websites across multiple WordPress...