far, and it is not a simple technical activity to log on to these websites.I started to use another social comment service, which slowed down the network speed and made the interface too busy. So I chose this plug-in based on the recommendations I love boiled fish.For example, it is a good third-party comment. My blog also uses more comments.Previously, I thought that I could only use plug-ins in the form
This article mainly introduces how to use CDN and AJAX to accelerate jQuery loading in WordPress. Pay attention to the problems of Google connection in WordPress and CDN in the Mainland. For more information, see
Are you sure you want to put it in the Head part?
In fact, the best case is that js files are not stored inOtherwise, the loading speed of the head par
: This article describes the filter attributes and SQL statement functions used in WordPress development. For more information about PHP tutorials, see. Esc_attr () (filter attribute)
Generally, the tag attribute of Html code is written in the following format:
What if the value attribute is dynamically output?
">
However, if the dynamic output attribute contains special characters such as double quotation marks and angle brackets, the Html code
This article mainly introduces how to use CDN and AJAX to accelerate jQuery loading in WordPress. pay attention to the problems of Google connection in WordPress and CDN in the mainland. For more information, see
Are you sure you want to put it in the Head part?
In fact, the best case is that js files are not stored inOtherwise, the loading speed of the head par
How to use Navcat modified wordpress all domain name including post article after the domain name I use plug-in useless I asked Navcat how to modify?
Reply to discussion (solution)
For example, you want to change the address of the blog from http://www.***.com to http://***.com, not simply in the WP background to modify the address, which will lead to the
Esc_html () (escaped HTML)
The esc_html () function is used to escape HTML code so that the HTML code is not escaped.
Usage
Esc_html ($text);
Parameters
$text
(string) (must) the string to be escaped.
Default value: None
return value
Returns the escaped character (string).
Example
echo esc_html (' A link ');
The above code will output:
WordPress function: esc_html () (escaped HTML)
(To prevent the browser from transcoding, I cut a picture directl
At this time, we will use a WordPress function--wp_link_pages (). So, how to use the Wp_link_pages () function to achieve the pagination display of WordPress article? Here, let's take a look.
First, we go to the article page template file single.php to find out if there is no wp_link_pages () function, if not, we add
How to use peanut shell 2.0+wordpress to build personal website? Hurry ~ ~ ~ Online
Peanut shells have been built!
WordPress has also been installed, can be used in the local normal use, and now in the background settings inside the configuration is:
But I changed it to the following
After the submission of the err
This article is to introduce the WordPress speed-increasing plug-ins are relatively small but very useful cache plug-ins--hyper cached. So, the WordPress cache plugin Hyper How cache installs and uses? Now, let's take a look at it.
The first step, install Hyper cache caching plug-ins.
Into the management of WP backstage, click the "Plug-in" >> "Install Plug-ins", and then search Hyper Cache, the first is
Mb_strimwidth
(PHP 4 >= 4.0.6, PHP 5)
Mb_strimwidth-gets the string truncated by the specified width
Description
String Mb_strimwidth (string $str, int $start, int $width [, String $trimmarker [, String $encoding]])
Press width to truncate the string str.
Parameters
Str
The string to truncate.
Start
The offset from the start position. The Intercept string that starts with the number of characters. (the default is 0 characters)
Width
The width of the desired trim.
Trimmarker
not unfamiliar, in micro-blog, BBS can see the "@" figure, even Tencent's Qzone also joined the "@ reply" function. Indeed, the "@ reply" makes the object of the reply clearer and more obvious for multiple responses.
However, WordPress's comment template does not have this feature, so we need to manually add in, in fact, this feature in WordPress has been more popular, many themes have this function, the principle of implementation are many, and I i
Sometimes we want to write an article on a blog siteArticleProvides the resource download function. displaying a Download button is easier to understand than a URL. If you use Wordpress to build a website, you can use a Custom font to implement this function. PHP file, find ""Code, Add the following code under it:
After the topic is modified, you can call th
1. Install redis on the vps host① I use the LNMP package, which comes with redis. Execute./redis. sh to automatically install and add it to self-start② Install redis-server separately# Apt-get install redis-serverStart redis-server and add the self-starting Project (refer to the specific method here, because some methods on linux are different)2. Add the PHP client of redis-Server to wordpressWe recommend that you
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
This WordPress function is usually used, especially when it is used to plug-ins or expand theme functions. I have written an article to note this and will use it later.This esc_url functionMainly used for URL filtering:1. Deny URLs that are not the following protocols (defaulting to http, https, ftp, ftps, mailto, news, irc, gopher, nntp, feed, and telnet)2. Remove invalid and dangerous characters.3. Conver
First look at the WordPress hint:
Here, directly, the root cause of this problem is the failure to install or start the SendMail component.
The next thing is OK, we install the SendMail component directly.
Reinstall the SendMail component, I use the CentOS and install the following command:
Yum Install SendMail
The following illustration will appear:
Press Y-Health directly, after successfully installed t
Comments-ajax.js after the CDN cache, many people encounter problems that cannot be answered (using AJAX). In this respect, my previous practice is only to prohibit the CDN to cache this file, then do not think of him.The original solution is to be followed in the comments-ajax.js:
var i = 0, got =-1, len = document.getelementsbytagname (' script '). Length;
while (i
Add to:
Js_url = Js_url.replace (' CDN address ', ' your domain name ');
This will solve the problem.
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.