This article mainly introduces how to use PHP + AJAX to allow WordPress to dynamically load articles, that is, you do not need to manually refresh the browser page to display the loaded articles. For more information, see
Why dynamic Article loading?
1. Quickly display pages to visitorsThe article contains a large amount of text and multimedia resources (such as images, videos, and music). loading the cont
Attackers use xmlrpc. php to crack WordPress.
In recent days, wordpress community members reported that they were under brute-force attack by using "title =" \ "> xmlrpc. php. Using the interface provided by xmlrpc. php, you can try to guess your password and bypass wordpress's restrictions on brute-force cracking. We have found a large scale of exploitation. If
With the previous article "using style sheets in WordPress plug-ins", this section "using JavaScript in WP plug-ins" is easy to describe and understand.
1. the folder structure of the plug-in is the same as that in the previous article. The functions completed by the plug-in are described in the previous article. This section adds a function. When you click on the text, a window is displayed. This example is also developed based on the previous exampl
This article mainly introduces how to use PHP + AJAX to allow WordPress to dynamically load articles, that is, you do not need to manually refresh the browser page to display the loaded articles. For more information, see
Why dynamic article loading?
1. quickly Display pages to visitorsThe article contains a large amount of text and multimedia resources (such as images, videos, and music). loading the cont
" option-It' s really that hard to find!
And no wonder. I just got the revelation today, and it turns out there's never been such option within the admin area. Nope. I was digging in the wrong place.
The option to use comments-popup.php, ladies and gentlemen, depends solely on the presence of a single PHP line inside a theme's header file. go open the header. PHP of the classic theme (available in any default install of
Today suddenly a netizen message said blog feed hung, the symptoms are as follows:
Chrome opens the subscription page directly as shown below:
This page contains the following errors:error on line 1 at column 1:document are Emptybelow is a rendering of the page up to the first error.
FeedDemon Tip: This feed contains errors.
After the addition also has no influence, can use normally.
The fruit reader is also readable, but does not have access to the
PHP via IP
How to use PHP to differentiate between countries and regions through IP? Maxmind.com provides a set of GEOIP solutions that simply require a few steps to determine the visitor's country via IP in PHP.
1. Download database and PHP library files
Download GeoID.dat.gz, unzip to GeoIP.dat file.Download Geoip.inc.2. Get country information through PHP codeThe following is a sample code showing how to obtain the country code and country name
Is it cool to be a total station statistic? Long-term blog fewer and less, why not give yourself a statistic to see how much they have worked on this blog, not only to give themselves to tourists, wp_count_posts is used in WordPress to count the number of articles in the function, You can count all types of articles (post) and Pages (page).
DescribeWp_count_posts is a function to count the number of articles in W
| Custom Post Template plugin.Step: 1, install the custom post template plugin. WP download: dot me2. Copy the single.php and rename it, for example single-new.php3. Open the renamed file and add the code at the top| function specifies the category templateanother is to use the function to specify the classification article template: Point MeAdd_action (' template_include ', ' load_single_template ');function Load_single_template ($template) {$new _te
Most use WordPress built site, after the table are MySQL database, often we need to customize the function of WordPress, here we list 10 most useful wordpress database query, you need a database management tools, such as phpMyAdmin or NAVICAT, etc. to execute these SQL statements.
1. Change the author of all documents
When writing a blog post, we may need to use a map to describe a thing or a place in detail. The easiest way is to find the target location on baidu/Google map, take a screenshot, and put it in the blog. However, if we can dynamically present Baidu/Google Map API data to readers, this not only makes the blog more lively and interesting, but also improves interaction with readers. I am still open-minded. The following describes how to reference Baidu M
Linux+apache+mysql+perl/php/python A group of open source software commonly used to build dynamic Web sites or servers is itself separate programs, but because they are often used together, With an increasing degree of compatibility, a powerful Web application platform has been formed. And from the traffic on the site, more than 70% of the traffic is lamp to provide, lamp is the most powerful web site solution. WordPress is a open source of the
This article mainly introduces how to use the FixRssFeeds plug-in to fix WordPress Feed display errors. If you need a friend, you can refer to the following message:
Chrome directly opens the subscription page and displays the following:
This page contains the following errors:error on line 1 at column 1: Document is emptyBelow is a rendering of the page up to the first error.
FeedDemon prompt: This Feed
function Introduction
Update_option () is used to update the option values that exist in the data table. This function can replace add_option, but is less flexible than add_option. Update_option checks and determines whether the option already exists. If it does not exist, add the option with Add_option (' option_name ', ' option_value '). Unless the user needs to specify an option parameter for Add_option, Update_option () is a dual-use function tha
call images in the article and integrate them perfectly with the attachments in the selection column on the editing page, which is too convenient.
Download and install NextGen Gallery
The latest version NextGen gallery version: 1.3.5 is available on the WP plug-in website.
Http://wordpress.org/extend/plugins/nextgen-gallery/
Download NextGen gallery version: 1.3.5
Http://downloads.wordpress.org/plugin/nextgen-gallery.zip
This is the official website of the plug-in:
Http://alexrabe.boelinger.com
Use and optimization of wordpress Coupon plug-in DRP Coupon
This is a foreign plug-in. You can try it as a coupon,
You can click the generated coupon to open the link and copy the coupon code at the same time. Function is not bad.
Usage:
After setting the coupon, you can add the corresponding coupon in the article.
When adding an article, select the coupon location :.
The small button on the Right of a
Why should I dynamically load an article?
1. Quickly show visitors the pageThe article contains a lot of text and multimedia resources (such as: Pictures, video, music), it takes a lot of time to load the content. If you have a large number of articles on your page, you will be impatient when visitors find that the page has not been loaded for a long time. This is the main purpose of dynamically loading the article.
2. Make a list of articlesmake the article on the page become a list, reduce t
This article mainly introduces how to use JavaScript to implement the function of displaying comments by ID in WordPress, that is, to display the subject content of the comments in the building-style comments. For more information, see: A left A message and B replied to A with @, So B's reply may be like this:
@How much money do you have?
That is to say, when you hover the mouse over @ A, the comment of A
//Same description
[category_description] =>
//same name
[Cat_name] => category name
//same slug
[category_ Nicename] => category-name
//same parent
[category_parent] =>
)
Get_children ()Let's take a look at the use of this function. Get_children is somewhat similar to the Get_posts function, but it is different, which is used primarily to retrieve or return a function of a parent article, a page Cong Wenzhang, an attachment
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.