Current location: home page > Website construction > WordPress development

Implementing WordPress article like function in code mode

WordPress development 1 comment 2020-3-30 20,199 views
In order to achieve better interaction effect, the Msimple theme has been upgraded recently, and the article like function has been added. This function refers to a pure code WordPress article of Maker Cloud, and the article like function has been added. Let's record and share it here. The implementation idea is to display the number of likes in real time through ajax, save the number of likes in custom fields, and prohibit re likes in cookies. Add Code The code below the code is added to the func of the topic

WordPress output LayUI style menu structure

WordPress development 0 comments 2019-10-27 5,369 views
LayUI is a front-end framework developed by Xianxin. It is simple and convenient to use, similar to the well-known BootStrap framework. At present, most open source projects in Xiaoz use the LayUI framework. However, few developers use LayUI to develop WordPress themes, so there are also some pitfalls. For example, WordPress uses the wp_nav_menu() function to output menu results by default

Add pagination to WordPress articles

WordPress development 3 comments 2014-5-13 7,872 views
If an article is long and has many pictures, it will not only affect the page loading speed but also affect the user's reading interest. We can page the article to solve this problem, which can not only prevent the loss of users and facilitate reading, but also improve the page loading speed. Implementation method: Find the index.php or single.php files in the theme directory you are using, and look for:<? php the_conten...