Bloggers may notice the "random articles" section in some websites when browsing blogs, which not only enriches the website content, but also may extend the stay time of visitors on your blog, reduce the bounce rate of the website, and help SEO!Today, let's share the PHP code of randomly calling articles in the New Start blog!Code 1:<?php glo...
It is often used in making wordpress templates. Wordpress calls the ID code of the current page.Otherwise, we can't call the information of which column accurately//This code can display the ID of the page at the required position.<?php global $post; $id ...
There is a lot of demand for sorting page results. The sorting of customized pages depends on how to write them now.As for other system pages such as "search results page", there are two methods. Today, let's talk about how to use a hook mechanism to control processing to avoid the complexity of inheriting and rewriting the page!Mainly use the posts_orderby Fi
How to use Redis in ThinkPaRP6?Today, I saw an article on the Internet about how to use Redis, which I feel is good. I will share it with you today.I hope it can help everyone.My server is CentOS 8.2, and then the pagoda panel is installed.If the environment is different, you need to install Re according to your own environment
Theme introduction: The robin begin theme is a WordPress theme that many webmasters like because of its perfect functions in all aspects, among which our Aiyababa website also uses the robin theme. This article shares the robin begin4.6 version, a perfect crack version, which can be downloaded and used freely without binding a domain name, and this version
Everyone who uses Dream CMS knows that sometimes we want to open a new window automatically after clicking a picture. How can we do this?The following two points summarized by CMS Tutorial Network will be shared with you.1、 Method 1: Use jquery<script type="text/javascript">$(f
PHP Tutorial Connecting to Access Database Tutorial code provides three methods for PHP connecting to access database. One is to use PHP's pdo, and the other is to use ODBC, com interfaces to connect to access database*///Use pdo to connect $path="f:
The data() function in PHP displays the time in Greenwich Mean Time, which is exactly 8 hours different from Beijing Time. Other time related functions, such as strtotime(), also have the same problem, which can be solved by the following methods: 1Modify php.ini settings: Open php.ini, find
Usually we see that large websites use the function of saving quick links from websites to the desktop. This function actually requires a program to complete, and the code is very simple.Here is a piece of code dedicated to Imperial CMS to keep the quick link to the desktop:<?php require("e/class/connect.php"...
The method of displaying different contents when the judgment field value shared by Imperial cms tutorial network is empty is applicable to content pages and list pages. You can take one example and use it flexibly!The empire is very powerful, only unexpected, nothing can not be done.If the Imperial CMS judges that the field value is empty and different content pages are displayed, use the variable $navinfor [field]: