<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Wordpress Tips - WP2X</title> <atom:link href="https://wp2x.com/category/blog/wordpress-tips/feed/" rel="self" type="application/rss+xml" /><link>https://wp2x.com</link> <description>We can help your Wordpress faster</description> <lastBuildDate>Sat, 26 Dec 2015 14:39:02 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod> hourly </sy:updatePeriod> <sy:updateFrequency> 1 </sy:updateFrequency> <generator>https://wordpress.org/?v=5.6.17</generator> <item><title>.htaccess redirection tips</title><link>https://wp2x.com/htaccess-redirection-tips/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sat, 26 Dec 2015 14:39:02 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[wordpress html]]></category> <category><![CDATA[wordpress programming]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=425</guid><description><![CDATA[<p>.htaccess is very powerful. Even the slightest syntax error (like a missing space) can result in your content not displaying correctly or at all. Since .htaccess is a hidden system file, please make sure your FTP client is configured to show hidden files. This is usually an option in the program&#8217;s preferences/options. Let&#8217;s do these ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/htaccess-redirection-tips/">.htaccess redirection tips</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>.htaccess is very powerful. Even the slightest syntax error (like a missing space) can result in your content not displaying correctly or at all.<span
id="more-425"></span></p><p><img
loading="lazy" class="aligncenter size-full wp-image-426" src="http://wp2x.com/wp-content/uploads/2015/12/illu_htaccess.gif?4b2a2c&amp;4b2a2c" alt="illu_htaccess" width="300" height="300" /></p><p>Since .htaccess is a hidden system file, please make sure your FTP client is configured to show hidden files. This is usually an option in the program&#8217;s preferences/options.</p><p>Let&#8217;s do these step to create a redirection by .htaccess file.</p><h2>1. Create an empty text file using a text editor such as notepad, and save it as htaccess.txt.</h2><h2>2. Edit the contents of the file. Check the following examples:</h2><p>301 (Permanent) Redirect: Point an entire site to a different URL on a permanent basis. This is the most common type of redirect and is useful in most situations. In this example, we are redirecting to the &#8220;mt-example.com&#8221; domain:</p><pre class="lang:default decode:true "># This allows you to redirect your entire website to any other domain
Redirect 301 / http://mt-example.com/</pre><p>302 (Temporary) Redirect: Point an entire site to a different temporary URL. This is useful for SEO purposes when you have a temporary landing page and plan to switch back to your main landing page at a later date:</p><pre class="lang:default decode:true "># This allows you to redirect your entire website to any other domain
Redirect 302 / http://mt-example.com/</pre><p>Redirect index.html to a specific subfolder:</p><pre class="lang:default decode:true "># This allows you to redirect index.html to a specific subfolder
Redirect /index.html http://example.com/newdirectory/

Redirect an old file to a new file path:

# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html
Redirect to a specific index page:

# Provide Specific Index Page (Set the default handler)
DirectoryIndex index.html</pre><h2>3. Upload this file and re-name it to .htaccess</h2><p>MORE POWERFUL URL CHANGES WITH MOD_REWRITE</p><p>If you need to make complex changes to the way your URL displays, you should visit Using .htaccess rewrite rules. You can do things like add &#8220;www&#8221; to the beginning of your URL, redirect all requests to a subfolder but keep the rest of the URL, etc.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/htaccess-redirection-tips/">.htaccess redirection tips</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>How to enable Gzip in .Htaccess for WordPress?</title><link>https://wp2x.com/how-to-enable-for-wordpress/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Wed, 18 Nov 2015 10:37:19 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[php tips]]></category> <category><![CDATA[wordpress programming]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=421</guid><description><![CDATA[<p>In case you have not heard of it in the past, Gzip is a server process that essentially compresses your files on the fly before transmission to the user. It is primarily used to compress text files such as HTML, CSS, and JavaScript with impressive results. Take the 90KB Mootools framework for example, Gzip reduces ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/how-to-enable-for-wordpress/">How to enable Gzip in .Htaccess for WordPress?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>In case you have not heard of it in the past, Gzip is a server process that essentially compresses your files on the fly before transmission to the user. <span
id="more-421"></span>It is primarily used to compress text files such as HTML, CSS, and JavaScript with impressive results. Take the 90KB Mootools framework for example, Gzip reduces it to 26KB saving the visitor time and your bandwidth.</p><p><a
href="http://wp2x.com/wp-content/uploads/2015/11/gzip3d.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-422" src="http://wp2x.com/wp-content/uploads/2015/11/gzip3d.png?4b2a2c&amp;4b2a2c" alt="gzip3d" width="299" height="198" /></a></p><pre class="lang:ini decode:true ">#Gzip
&lt;ifmodule mod_deflate.c&gt;
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
&lt;/ifmodule&gt;
#End Gzip</pre><p>If your hosting setup has Gzip enabled I highly recommend that you enable it in your .htaccess file by copying and pasting the above code into your .htaccess. If they don&#8217;t have it enabled, simply ask, most of the time they will simply enable it for you. It also comes recommended by Google and <a
href="http://developer.yahoo.com/performance/rules.html#gzip" target="_blank">Yahoo</a>.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/how-to-enable-for-wordpress/">How to enable Gzip in .Htaccess for WordPress?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Install Redis Caching to Speed Up WordPress on Ubuntu</title><link>https://wp2x.com/install-redis-caching-to-speed-up-wordpress-on-ubuntu/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Mon, 28 Sep 2015 10:03:46 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[cache]]></category> <category><![CDATA[redis]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=417</guid><description><![CDATA[<p>In this tutorial, Redis will be configured as a cache for WordPress to alleviate the redundant and time-consuming database queries used to render a WordPress page. The result is a WordPress site which is much faster, uses less database resources, and provides a tunable persistent cache. Redis is an open-source key value store that can ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/install-redis-caching-to-speed-up-wordpress-on-ubuntu/">Install Redis Caching to Speed Up WordPress on Ubuntu</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>In this tutorial, Redis will be configured as a cache for WordPress to alleviate the redundant and time-consuming database queries used to render a WordPress page. The result is a WordPress site which is much faster, uses less database resources, and provides a tunable persistent cache.<span
id="more-417"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2015/09/redis_cashing_for_wordpress.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-418" src="http://wp2x.com/wp-content/uploads/2015/09/redis_cashing_for_wordpress.png?4b2a2c&amp;4b2a2c" alt="redis_cashing_for_wordpress" width="547" height="338" srcset="https://wp2x.com/wp-content/uploads/2015/09/redis_cashing_for_wordpress.png 547w, https://wp2x.com/wp-content/uploads/2015/09/redis_cashing_for_wordpress-300x185.png 300w" sizes="(max-width: 547px) 100vw, 547px" /></a></p><p>Redis is an open-source key value store that can operate as both an in-memory store and as cache. Redis is a data structure server that can be used as a database server on its own, or paired with a relational database like MySQL to speed things up, as we&#8217;re doing in this tutorial.</p><p>Default WordPress home page without Redis:</p><p>804ms page load time</p><p>Default WordPress home page with Redis:</p><p>449ms page load time</p><h2>Redis vs. Memcached</h2><p>Memcached is also a popular cache choice. However, at this point, Redis does everything Memcached can do, with a much larger feature set. This Stack Overflow page has some general information as an overview or introduction to persons new to Redis.</p><h2>Step 1 — Install Redis</h2><p>In order to use Redis with WordPress, two packages need to be installed: redis-server and php5-redis. The redis-server package provides Redis itself, while the php5-redis package provides a PHP extension for PHP applications like WordPress to communicate with Redis.</p><p>Install the softare:</p><pre class="lang:default decode:true">sudo apt-get install redis-server php5-redis</pre><h2>Step 2 — Configure Redis as a Cache</h2><p>Redis can operate both as a NoSQL database store as well as a cache. For this guide and use case, Redis will be configured as a cache. In order to do this, the following settings are required.</p><p>Edit the file /etc/redis/redis.conf and add the following lines at the bottom:</p><p>Add these lines at the end of the file:</p><pre class="lang:default decode:true ">maxmemory 256mb
maxmemory-policy allkeys-lru</pre><p>When changes are complete, save and close the file.</p><h2>Step 3 — Obtain Redis Cache Backend Script</h2><p>This PHP script for WordPress was originally developed by Eric Mann. It is a Redis object cache backend for WordPress.</p><p>Download the object-cache.php script. This download is from DigitalOcean&#8217;s asset server, but this is a third-party script. You should read the comments in the script to see how it works.</p><p>Download the PHP script:</p><pre class="lang:default decode:true">wget https://assets.digitalocean.com/articles/wordpress_redis/object-cache.php</pre><p>Move the file to the /wp-content directory of your WordPress installation:</p><pre class="lang:default decode:true ">sudo mv object-cache.php /var/www/html/wp-content/</pre><p>Depending on your WordPress installation, your location may be different.</p><h2>Step 4 — Enable Cache Settings in wp-config.php</h2><p>Next, edit the wp-config.php file to add a cache key salt with the name of your site (or any string you would like).</p><pre class="lang:default decode:true ">nano /var/www/html/wp-config.php</pre><p>Add this line at the end of the * Authentication Unique Keys and Salts. section:</p><pre class="lang:default decode:true ">define('WP_CACHE_KEY_SALT', 'example.com');</pre><p>You can use your domain name or another string as the salt.</p><p><strong>Note</strong>: For users hosting more than one WordPress site, each site can share the same Redis installation as long as it has its own unique cache key salt.</p><p>Also, add the following line after the WP_CACHE_KEY_SALT line to create a persistent cache with the Redis object cache plugin:</p><pre class="lang:default decode:true">define('WP_CACHE', true);</pre><p>All together, your file should look like this:</p><p>* Authentication Unique Keys and Salts.</p><pre class="lang:default decode:true ">. . .

define('NONCE_SALT', 'put your unique phrase here');

define('WP_CACHE_KEY_SALT', 'example.com');
define('WP_CACHE', true);
Save and close the file.
</pre><h2>Step 5 — Restart Redis and Apache</h2><p>Finally, restart redis-service and apache2.</p><p>Restart Redis:</p><pre class="lang:default decode:true ">sudo service redis-server restart</pre><p>Restart Apache:</p><pre class="lang:default decode:true ">sudo service apache2 restart</pre><p>Restart php5-fpm if you are using it; this is not part of the basic installation on DigitalOcean:</p><pre class="lang:default decode:true ">sudo service php5-fpm restart</pre><p>That&#8217;s it! Your WordPress site is now using Redis caching. If you check your page load speeds and resource use, you should notice improvements.</p><p>Monitor Redis with redis-cli</p><p>To monitor Redis, use the redis-cli command like so:</p><pre class="lang:default decode:true ">redis-cli monitor</pre><p>When you run this command, you will see the real-time output of Redis serving cached queries. If you don&#8217;t see anything, visit your website and reload a page.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/install-redis-caching-to-speed-up-wordpress-on-ubuntu/">Install Redis Caching to Speed Up WordPress on Ubuntu</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Security tips for WordPress</title><link>https://wp2x.com/security-tips-for-wordpress/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Thu, 23 Jul 2015 10:45:20 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[security]]></category> <category><![CDATA[wordpress optimization]]></category> <category><![CDATA[wordpress plugin]]></category> <category><![CDATA[wordpress programming]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=398</guid><description><![CDATA[<p>There are a lot of risks from internet for a webmaster to maintain their website, but with wordpress it &#8216;s easy to do the basic security, today I will share you 3 wordpress security tips what always need for any wordpress site. &#160; 1. WordPress security with daily backup No one can guarantee their website ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/security-tips-for-wordpress/">Security tips for WordPress</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>There are a lot of risks from internet for a webmaster to maintain their website, but with wordpress it &#8216;s easy to do the basic security, today I will share you 3 wordpress security tips what always need for any wordpress site.<span
id="more-398"></span></p><p>&nbsp;</p><h2><img
loading="lazy" class="aligncenter size-full wp-image-399" src="http://wp2x.com/wp-content/uploads/2015/07/Wordpress-Security-Plugins.jpg?4b2a2c&amp;4b2a2c" alt="Wordpress-Security-Plugins" width="570" height="300" srcset="https://wp2x.com/wp-content/uploads/2015/07/Wordpress-Security-Plugins.jpg 570w, https://wp2x.com/wp-content/uploads/2015/07/Wordpress-Security-Plugins-300x158.jpg 300w" sizes="(max-width: 570px) 100vw, 570px" /></h2><h2>1. WordPress security with daily backup</h2><p>No one can guarantee their website is secured 100% so that let &#8216;s prepare a backup version daily via your hosting plan. Almost hosting service provide daily backup service include files and database. Just one-click to restore if you meet any risk later on. This way will make sure you are safe 100%.</p><h2>2. Internet activity security</h2><p><strong>1. Use A Secure Network At Home</strong> – If you are using Wifi at your home or office, then I would suggest setting up a private WPA2 network with a strong, randomly-generated name and network passphrase. For additional protection, you can employ “security through obscurity” methods such as enabling MAC Address Filtering.<br
/> <strong>2. Use An Encrypted VPN Connection Over Public Wifi</strong> – Generally speaking, it’s best to never log in to a sensitive area such as your WordPress Dashboard when connected to the internet over public Wifi. If you are using your laptop or phone over a public network, always run your connection through an encrypted VPN and make sure that you are signing in to your website over SSL. You can purchase a VPN from StrongVPN.com.</p><h2>3. Securing Your Personal Computer</h2><p>If I can recommend, I recommend you use Linux or Mac to anti virus. In windows I usually meet the key logger software what can&#8217;t be detected by any anti virus software. It &#8216;s a lot of risk if you lose server account and email accounts.</p><p>But anyway, if you can&#8217;t use Linux or Mac I think you can a good anti virus software like <a
href="https://www.kaspersky.com/" target="_blank">Kaspersky</a></p><p>They are simple but strong to help you in any risk situation. Hope it help!</p><p>Welcome any comment.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/security-tips-for-wordpress/">Security tips for WordPress</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Randomise elements in PHP array with shuffle</title><link>https://wp2x.com/randomise-elements-in-php-array-with-shuffle/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Fri, 29 May 2015 15:14:41 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[php]]></category> <category><![CDATA[wordpress development]]></category> <category><![CDATA[wordpress ebook]]></category> <category><![CDATA[wordpress html]]></category> <category><![CDATA[wordpress programming]]></category> <category><![CDATA[wordpress theme]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=370</guid><description><![CDATA[<p>Randomise elements in PHP array with shuffle is quite easy. I have to spend at least an hour to optimise this task until I found shuffle function what already done this task :). The function reference you can check more detail here: http://php.net/manual/en/function.shuffle.php Here is an example for how to randomise elements in PHP array with ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/randomise-elements-in-php-array-with-shuffle/">Randomise elements in PHP array with shuffle</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Randomise elements in PHP array with shuffle is quite easy. I have to spend at least an hour to optimise this task until I found shuffle function what already done this task :).<span
id="more-370"></span></p><p>The function reference you can check more detail here: <a
href="http://php.net/manual/en/function.shuffle.php" target="_blank">http://php.net/manual/en/function.shuffle.php</a></p><p><a
href="http://wp2x.com/wp-content/uploads/2015/05/PHP__shuffle_-_Manual.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-371" src="http://wp2x.com/wp-content/uploads/2015/05/PHP__shuffle_-_Manual.jpg?4b2a2c&amp;4b2a2c" alt="PHP__shuffle_-_Manual" width="564" height="326" srcset="https://wp2x.com/wp-content/uploads/2015/05/PHP__shuffle_-_Manual.jpg 564w, https://wp2x.com/wp-content/uploads/2015/05/PHP__shuffle_-_Manual-300x173.jpg 300w" sizes="(max-width: 564px) 100vw, 564px" /></a></p><p>Here is an example for how to randomise elements in PHP array with <strong>shuffle</strong></p><p>Let &#8216;s run this code</p><pre class="lang:php decode:true ">&lt;?php
    $natural_born_killers = array("lions", "tigers", "bears", "kittens");
    shuffle($natural_born_killers);
    var_dump($natural_born_killers);
?&gt;</pre><p>Run in many times and try to see the result array, it will show you different result every time you run it.<br
/> One major drawback to using shuffle() is that it mangles your array keys. This is unavoidable sadly, and you need to live with it when you use shuffle(). Note that shuffle uses its parameter by reference &#8211; it returns true, but shuffles up the parameter you pass to it.</p><p>If you want to pick out just one random value from an array, you can use array_rand() &#8211; it takes an array to read from, then returns one random key from inside there. The advantage to array_rand() is that it leaves the original array intact &#8211; you can use the random key returned to grab the related value from the array, but other than that the original array is left untouched.</p><p><strong>Array_rand</strong>() has an optional second parameter that allows you to specify the number of elements you would like returned. These are each chosen randomly from the array, and are not necessarily returned in any particular order.</p><p>Before I show you an example, you need to be aware of the following attributes of <strong>array_rand</strong>():</p><p>It returns the keys in your array. If these aren&#8217;t specified, the default integer indexes are used. To get the value out of the array, just look up the value at the key.</p><p>If you ask for one random element, or do not specify parameter two, you will get a standard variable back.</p><p>If you ask for more than one random element, you will receive an array of variables back.</p><p>If you ask for more random elements than there are in the array you will get an error</p><p><strong>Array_rand</strong>() will not return duplicate elements if you request more than one random element</p><p>If you want to read most or all of the elements from your array in a random order, use a mass-randomiser like shuffle() &#8211; it is faster.</p><p>With that in mind, here&#8217;s an example of array_rand() in action:</p><pre class="lang:php decode:true">&lt;?php
    $natural_born_killers = array("lions", "tigers", "bears", "kittens");
    var_dump(array_rand($natural_born_killers, 2));
?&gt;</pre><p>&nbsp;</p><p>The post <a
rel="nofollow" href="https://wp2x.com/randomise-elements-in-php-array-with-shuffle/">Randomise elements in PHP array with shuffle</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Convert a string to a number in PHP</title><link>https://wp2x.com/convert-string-number-php/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sat, 16 May 2015 05:41:16 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[convert]]></category> <category><![CDATA[number]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress plugin]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=365</guid><description><![CDATA[<p>Convert a string to a number in PHP is quite simple, let me show you the problem and the solution for it. &#160; Here is what we need to do Input Output '2' 2 '2.34' 2.34 '0.3454545' 0.3454545 Now, let &#8216;s do the magic $num = "3.14"; $int = (int)$num; $float = (float)$num; For more ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/convert-string-number-php/">Convert a string to a number in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Convert a string to a number in PHP is quite simple, let me show you the problem and the solution for it.<span
id="more-365"></span></p><p>&nbsp;</p><p><a
href="http://wp2x.com/wp-content/uploads/2015/05/number.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-366" src="http://wp2x.com/wp-content/uploads/2015/05/number.png?4b2a2c&amp;4b2a2c" alt="number" width="290" height="238" /></a></p><p>Here is what we need to do</p><pre class="lang:sh decode:true ">Input             Output
'2'               2
'2.34'            2.34
'0.3454545'       0.3454545</pre><p>Now, let &#8216;s do the magic</p><pre class="lang:default decode:true ">$num = "3.14";
$int = (int)$num;
$float = (float)$num;</pre><p>For more detail you can do like this</p><p>1. Cast the strings to numeric primitive data types:</p><pre class="lang:php decode:true ">$num = (int) "10";
$num = (double) "10.12"; // same as (float) "10.12";</pre><p>2. Perform math operations on the strings:</p><pre class="lang:php decode:true ">$num = "10" + 1;
$num = floor("10.1");</pre><p>3. Use intval() or floatval():</p><pre class="lang:php decode:true ">$num = intval("10");
$num = floatval("10.1");</pre><p>I think they are good enough for you to convert string to any number type.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/convert-string-number-php/">Convert a string to a number in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Get last character from string in PHP</title><link>https://wp2x.com/get-last-character-from-string-in-php/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sun, 19 Apr 2015 12:53:56 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[php programming]]></category> <category><![CDATA[php string]]></category> <category><![CDATA[php tips]]></category> <category><![CDATA[php wordpress]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=361</guid><description><![CDATA[<p>Easy but not for all of us to get last character from string in PHP. It &#8216;s quite simple to figure out with a quick Google it. So if you found my article about this. Then you are in right place to solve this issuse with a simplest way. 1. Get the last char of a ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/get-last-character-from-string-in-php/">Get last character from string in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Easy but not for all of us to get last character from string in PHP. It &#8216;s quite simple to figure out with a quick Google it. So if you found my article about this. Then you are in right place to solve this issuse with a simplest way.<span
id="more-361"></span></p><h2><a
href="http://wp2x.com/wp-content/uploads/2015/04/php-string.jpeg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-362" src="http://wp2x.com/wp-content/uploads/2015/04/php-string.jpeg?4b2a2c&amp;4b2a2c" alt="php string" width="259" height="194" /></a></h2><h2>1. Get the last char of a string in PHP</h2><p>If you want to get the only one character in a string, here is simplest function to do.</p><pre class="lang:php decode:true">substr("testers", -1); // returns "s"</pre><p>So simple?</p><p>And what if you want 2 characters? Let &#8216;s do this</p><pre class="lang:default decode:true ">substr("testers", -2); // returns "rs"</pre><h2> 2. Remove the last character from string</h2><p>Just a bonus if this article, if you want to remove the last character in a string. You can do this function</p><pre class="lang:php decode:true ">substr("a,b,c,d,e,", 0, -1);</pre><p>The output is a,b,c,d,e</p><p>Hope this article help you solve the problem with string.</p><p>Thanks</p><p>The post <a
rel="nofollow" href="https://wp2x.com/get-last-character-from-string-in-php/">Get last character from string in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Install and configure wordpress multisite (WPMU)</title><link>https://wp2x.com/install-and-configure-wordpress-multisite-wpmu/</link> <comments>https://wp2x.com/install-and-configure-wordpress-multisite-wpmu/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Fri, 27 Mar 2015 02:10:05 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[wordpress install]]></category> <category><![CDATA[wordpress multisite]]></category> <category><![CDATA[wordpress setup]]></category> <category><![CDATA[wordpress site]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wpmu]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=353</guid><description><![CDATA[<p>Getting some requests from our nice customers about Install and configure wordpress multisite (WPMU), we are happy to show you how to do it in this post to make your wordpress to a WordPress Network 1. Wildcard sub-domain You will need to set up a wildcard subdomain on your account. Now let &#8216;s do these steps in ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/install-and-configure-wordpress-multisite-wpmu/">Install and configure wordpress multisite (WPMU)</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Getting some requests from our nice customers about Install and configure wordpress multisite (WPMU), we are happy to show you how to do it in this post to make your wordpress to a WordPress Network<span
id="more-353"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2015/03/Install-and-configure-wordpress-multisite.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-357" src="http://wp2x.com/wp-content/uploads/2015/03/Install-and-configure-wordpress-multisite.jpg?4b2a2c&amp;4b2a2c" alt="Install and configure wordpress multisite" width="605" height="517" srcset="https://wp2x.com/wp-content/uploads/2015/03/Install-and-configure-wordpress-multisite.jpg 605w, https://wp2x.com/wp-content/uploads/2015/03/Install-and-configure-wordpress-multisite-300x256.jpg 300w" sizes="(max-width: 605px) 100vw, 605px" /></a></p><h2>1. Wildcard sub-domain</h2><p>You will need to set up a wildcard subdomain on your account. Now let &#8216;s do these steps in your cPanel. If you don&#8217;t know what hositng you can do this. You can check our <a
title="Top 10 WordPress Hosting for the Best Performance and Security" href="http://wp2x.com/top-10-wordpress-hosting-best-performance-security/" target="_blank">top hosting list for wordpress</a></p><p>&#8211; First, log into your cPanel account and under the &#8220;Domains&#8221; section select &#8220;Subdomains&#8221;</p><p><a
href="http://wp2x.com/wp-content/uploads/2015/03/sub1.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-354" src="http://wp2x.com/wp-content/uploads/2015/03/sub1.jpg?4b2a2c&amp;4b2a2c" alt="sub1" width="530" height="167" srcset="https://wp2x.com/wp-content/uploads/2015/03/sub1.jpg 530w, https://wp2x.com/wp-content/uploads/2015/03/sub1-300x95.jpg 300w" sizes="(max-width: 530px) 100vw, 530px" /></a></p><p>&#8211; Next, in the first open field, place a * symbol there signifying that you are creating a wildcard subdomain and click &#8220;Create&#8221;.</p><p><a
href="http://wp2x.com/wp-content/uploads/2015/03/wild1-e1427421864673.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-355" src="http://wp2x.com/wp-content/uploads/2015/03/wild1-e1427421864673.jpg?4b2a2c&amp;4b2a2c" alt="wild1" width="600" height="222" /></a></p><p>&#8211; Congratulations! You have now successfully set up your account for wildcard domains. You still may need to modify your .htaccess file. However, if you have set up wildcard subdomains for WordPress Multisite, it will automatically configure the .htaccess file for you.</p><h2>2. Enable WordPress Multisite</h2><p>Once wildcard subdomains are set up, you will need to enable multisite on your current WordPress installation. To do this go into your File Manager and edit the wp-config.php file in your file on your WordPress directory. Once you have opened the file for editing, add the following line of code:</p><pre class="lang:php decode:true">define ('WP_ALLOW_MULTISITE', true);</pre><p>Place the code one line above the code that says /* That&#8217;s all, stop editing! Happy blogging. */:. Once the code has been inserted, click on &#8220;save changes&#8221; at the top right of the page. Keep your cPanel open, we will be making more modifications in a moment.</p><h2>3. Access WordPress Networks</h2><p>Next, you will need to open your WordPress Dashboard. Under Administration, click Tools and then Networks. This is where you will be configuring your new mutlisite or network.</p><p><strong>Addresses of the Sites in your Network:</strong> Here you decide if you want to use subdomains (site1.yourdomain.com) or sub-directores (yourdomain.com/site1)</p><p><strong>Network Details:</strong> These will be filled in automatically, just make sure they&#8217;re correct.<br
/> Once you are done choosing your settings, click Install.</p><h2>4. Enable Network</h2><p>The last step, you need to enable the network. Keep your dashboard open as we will need to retrieve some information from it. Go back yo your cPanel file manager and into the WordPress directory. Then, create a blogs.dir folder in the /wp-content/ folder.</p><p>Next, you will need to reference your WordPress Dashboard. Under tools, click Network. This will show a page with custom coding that needs to be placed into your wp-config.php file. It should look something like this:</p><h2><a
href="http://wp2x.com/wp-content/uploads/2015/03/WPMU.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-356" src="http://wp2x.com/wp-content/uploads/2015/03/WPMU.jpg?4b2a2c&amp;4b2a2c" alt="WPMU" width="600" height="450" srcset="https://wp2x.com/wp-content/uploads/2015/03/WPMU.jpg 600w, https://wp2x.com/wp-content/uploads/2015/03/WPMU-300x225.jpg 300w" sizes="(max-width: 600px) 100vw, 600px" /></a></h2><p>With your cPanel file manager, edit the same <strong>wp-config.php</strong> file that you edited in step 2.</p><p>Directly above the /* That&#8217;s all, stop editing! Happy blogging. */: line, put in the two blocks of code marked with a &#8220;1&#8221; in the picture above.</p><p>Next, you will add the generated mod_rewrite rules to the .htaccess file in your WordPress folder. In the .htaccess file, add all coding marked in the picture with a &#8220;2.&#8221; Remember that your code may be different then the one in our picture.</p><p>Log out of your WordPress Dashboard and back in to make sure the changes take effect. To make any additional changes, there is now a new Network Admin sub-section in your Dashboard.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/install-and-configure-wordpress-multisite-wpmu/">Install and configure wordpress multisite (WPMU)</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/install-and-configure-wordpress-multisite-wpmu/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Extract youtube ID from youtube URL in PHP</title><link>https://wp2x.com/extract-youtube-id-from-youtube-url-in-php/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 10 Mar 2015 10:50:05 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[php programming]]></category> <category><![CDATA[php tips]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[youtube]]></category> <category><![CDATA[youtube id]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=350</guid><description><![CDATA[<p>Today I will show you a very easy way to Extract youtube ID from youtube URL in PHP. This is very simple task what shouldn&#8217;t take time but we usually do it not official with all of situations. It &#8216;s very simple, you just need to run this wayway function getIDFromYoutubeURL($url){ $video_id = false; if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/&#124;(?:v&#124;e(?:mbed)?)/&#124;.*[?&#38;]v=)&#124;youtu\.be/)([^"&#38;?/ ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/extract-youtube-id-from-youtube-url-in-php/">Extract youtube ID from youtube URL in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Today I will show you a very easy way to Extract youtube ID from youtube URL in PHP. This is very simple task what shouldn&#8217;t take time but we usually do it not official with all of situations.<span
id="more-350"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2015/03/YouTube-Content-ID.jpeg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-351" src="http://wp2x.com/wp-content/uploads/2015/03/YouTube-Content-ID.jpeg?4b2a2c&amp;4b2a2c" alt="YouTube-Content-ID" width="200" height="212" /></a></p><p>It &#8216;s very simple, you just need to run this wayway</p><pre class="lang:php decode:true">function getIDFromYoutubeURL($url){
        $video_id = false;
        if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&amp;]v=)|youtu\.be/)([^"&amp;?/ ]{11})%i', $url, $match)) {
            $video_id = $match[1];
        }
        return $video_id;
    }</pre><p>Now let &#8216;s use function like this</p><pre class="lang:default decode:true ">$youtubeID = getIDFromYoutubeURL("https://www.youtube.com/watch?v=_URzW7CH8Dg");

// $youtubeID = _URzW7CH8Dg</pre><p>&nbsp;</p><p>The post <a
rel="nofollow" href="https://wp2x.com/extract-youtube-id-from-youtube-url-in-php/">Extract youtube ID from youtube URL in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Search text in nano text editor</title><link>https://wp2x.com/search-text-nano-text-editor/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Mon, 02 Feb 2015 12:39:25 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[nano text editor]]></category> <category><![CDATA[text editor]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=343</guid><description><![CDATA[<p>Instead using &#8220;vi&#8221; editor in linux system, we usually use nano text editor to make everything easier. But not many people know how to search text in nano text editor. In this tutorial I will show you a very simple tips. To enter the nano text editor you just need to type this line nano ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/search-text-nano-text-editor/">Search text in nano text editor</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Instead using &#8220;vi&#8221; editor in linux system, we usually use nano text editor to make everything easier. But not many people know how to search text in nano text editor. In this tutorial I will show you a very simple tips.<span
id="more-343"></span></p><p>To enter the nano text editor you just need to type this line</p><pre class="lang:default decode:true ">nano /tmp/mytext.txt</pre><p>Let &#8216;s say you are writing a lot of text and you want to find a string, then <strong>Ctrl + W</strong> is the shortcut for searching. After entering the <strong>search term</strong>, press <strong>Enter</strong>. To repeat the search, issue <strong>Alt + W</strong>. In this menu, you can select earlier searches using the arrow <strong>up/ down</strong> keys.</p><p><img
loading="lazy" class="aligncenter size-full wp-image-344" src="http://wp2x.com/wp-content/uploads/2015/02/nano-text-editor.png?4b2a2c&amp;4b2a2c" alt="nano text editor" width="507" height="341" srcset="https://wp2x.com/wp-content/uploads/2015/02/nano-text-editor.png 507w, https://wp2x.com/wp-content/uploads/2015/02/nano-text-editor-300x202.png 300w, https://wp2x.com/wp-content/uploads/2015/02/nano-text-editor-290x195.png 290w" sizes="(max-width: 507px) 100vw, 507px" /></p><p>To toggle backwards searching, you need to press <strong>Alt + B</strong> in the search dialog.</p><p>For more shortcuts, press <strong>F1</strong></p><p>Is it quite easy?</p><p>The post <a
rel="nofollow" href="https://wp2x.com/search-text-nano-text-editor/">Search text in nano text editor</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Upgrade wordpress via command line shell</title><link>https://wp2x.com/upgrade-wordpress-via-command-line-shell/</link> <comments>https://wp2x.com/upgrade-wordpress-via-command-line-shell/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sat, 13 Dec 2014 01:20:40 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[command line]]></category> <category><![CDATA[security]]></category> <category><![CDATA[upgrade wordpress]]></category> <category><![CDATA[wordpress plugin]]></category> <category><![CDATA[wordpress security]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=330</guid><description><![CDATA[<p>There are some reasons why we have to upgrade wordpress via command line in linux shell. Upgrade in admin panel fail because of network connection happen in upgrade process No FTP account to upgrade (if hosting require) File permission problem Security problem It &#8216;s quite easy, let &#8216;s do these steps to upgrade wordpress in ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/upgrade-wordpress-via-command-line-shell/">Upgrade wordpress via command line shell</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>There are some reasons why we have to upgrade wordpress via command line in linux shell.<span
id="more-330"></span></p><ul><li>Upgrade in admin panel fail because of network connection happen in upgrade process</li><li>No FTP account to upgrade (if hosting require)</li><li>File permission problem</li><li>Security problem</li></ul><p>It &#8216;s quite easy, let &#8216;s do these steps to upgrade wordpress in command line.</p><p>1. Login to server via SSH account</p><p>2. Download the latest version of wordpress and unzip via command line with this way</p><pre class="lang:sh decode:true">$ cd /tmp
$ wget http://wordpress.org/latest.zip
$ unzip latest.zip</pre><p>&nbsp;</p><p><a
href="http://wp2x.com/wp-content/uploads/2014/12/ssh.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-379" src="http://wp2x.com/wp-content/uploads/2014/12/ssh.jpg?4b2a2c&amp;4b2a2c" alt="ssh" width="584" height="309" srcset="https://wp2x.com/wp-content/uploads/2014/12/ssh.jpg 584w, https://wp2x.com/wp-content/uploads/2014/12/ssh-300x159.jpg 300w" sizes="(max-width: 584px) 100vw, 584px" /></a></p><p>3. Then Overwrite all new files</p><pre class="lang:sh decode:true ">$ cd /var/www/html/blog
$ cp -avr /tmp/wordpress/* .
$ rm -rf /tmp/wordpress /tmp/latest.zip</pre><p>Now login to admin panel of wordpress it will require you upgrade database, just perform the action and everything will be done.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/upgrade-wordpress-via-command-line-shell/">Upgrade wordpress via command line shell</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/upgrade-wordpress-via-command-line-shell/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>PHP function to display time ago base on timestamp</title><link>https://wp2x.com/php-function-display-time-ago-base-timestamp/</link> <comments>https://wp2x.com/php-function-display-time-ago-base-timestamp/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Wed, 03 Dec 2014 10:21:56 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[php function]]></category> <category><![CDATA[php tips]]></category> <category><![CDATA[time ago]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=326</guid><description><![CDATA[<p>Timestamp in PHP only for system usage, for user we have to show it in easy to read way like: 1 minutes ago, 1 hour ago &#8230; Today I will show you to use PHP function to display time ago base on timestamp. Here is very simple PHP function what you can use in any PHP ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/php-function-display-time-ago-base-timestamp/">PHP function to display time ago base on timestamp</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Timestamp in PHP only for system usage, for user we have to show it in easy to read way like: 1 minutes ago, 1 hour ago &#8230; Today I will show you to use PHP function to display time ago base on timestamp.<span
id="more-326"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/12/php-function-time-ago.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-327" src="http://wp2x.com/wp-content/uploads/2014/12/php-function-time-ago.png?4b2a2c&amp;4b2a2c" alt="php function time ago" width="728" height="546" srcset="https://wp2x.com/wp-content/uploads/2014/12/php-function-time-ago.png 728w, https://wp2x.com/wp-content/uploads/2014/12/php-function-time-ago-300x225.png 300w" sizes="(max-width: 728px) 100vw, 728px" /></a>Here is very simple PHP function what you can use in any PHP project to display time.</p><pre class="lang:php decode:true ">&lt;?php
function timeAgo($time_ago){
$cur_time 	= time();
$time_elapsed 	= $cur_time - $time_ago;
$seconds 	= $time_elapsed ;
$minutes 	= round($time_elapsed / 60 );
$hours 		= round($time_elapsed / 3600);
$days 		= round($time_elapsed / 86400 );
$weeks 		= round($time_elapsed / 604800);
$months 	= round($time_elapsed / 2600640 );
$years 		= round($time_elapsed / 31207680 );
// Seconds
if($seconds &lt;= 60){
	echo "$seconds seconds ago";
}
//Minutes
else if($minutes &lt;=60){
	if($minutes==1){
		echo "one minute ago";
	}
	else{
		echo "$minutes minutes ago";
	}
}
//Hours
else if($hours &lt;=24){
	if($hours==1){
		echo "an hour ago";
	}else{
		echo "$hours hours ago";
	}
}
//Days
else if($days &lt;= 7){
	if($days==1){
		echo "yesterday";
	}else{
		echo "$days days ago";
	}
}
//Weeks
else if($weeks &lt;= 4.3){
	if($weeks==1){
		echo "a week ago";
	}else{
		echo "$weeks weeks ago";
	}
}
//Months
else if($months &lt;=12){
	if($months==1){
		echo "a month ago";
	}else{
		echo "$months months ago";
	}
}
//Years
else{
	if($years==1){
		echo "one year ago";
	}else{
		echo "$years years ago";
	}
}
}

?&gt;</pre><p>Now, time to show and use it &#8216;s quite simple like this</p><pre class="lang:php decode:true ">&lt;?php
  $curenttime="2013-07-10 09:09:09";
  $time_ago =strtotime($curenttime);
  echo timeAgo($time_ago);
?&gt;</pre><p>You will see the output like this</p><pre class="lang:default decode:true ">one year ago</pre><p>&nbsp;</p><p>&nbsp;</p><p>The post <a
rel="nofollow" href="https://wp2x.com/php-function-display-time-ago-base-timestamp/">PHP function to display time ago base on timestamp</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/php-function-display-time-ago-base-timestamp/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Crayon Syntax Highlighter WordPress plugin</title><link>https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/</link> <comments>https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Wed, 05 Nov 2014 11:14:22 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[free wordpress plugin]]></category> <category><![CDATA[wordpress highlight]]></category> <category><![CDATA[wordpress plugin]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=315</guid><description><![CDATA[<p>Crayon Syntax Highlighter is a perfect highlight code solution for any wordpress site. It &#8216;s fast, simple and easy to use. Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text. First of all, you can download and install here: https://wordpress.org/plugins/crayon-syntax-highlighter/ A Syntax Highlighter built in PHP and jQuery that supports ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/">Crayon Syntax Highlighter WordPress plugin</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Crayon Syntax Highlighter is a perfect highlight code solution for any wordpress site. It &#8216;s fast, simple and easy to use. Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.<span
id="more-315"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/11/banner-772x250.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-316" src="http://wp2x.com/wp-content/uploads/2014/11/banner-772x250.jpg?4b2a2c&amp;4b2a2c" alt="banner-772x250" width="772" height="248" srcset="https://wp2x.com/wp-content/uploads/2014/11/banner-772x250.jpg 772w, https://wp2x.com/wp-content/uploads/2014/11/banner-772x250-300x96.jpg 300w" sizes="(max-width: 772px) 100vw, 772px" /></a></p><p>First of all, you can download and install here: <a
href="https://wordpress.org/plugins/crayon-syntax-highlighter/" target="_blank">https://wordpress.org/plugins/crayon-syntax-highlighter/</a></p><p>A Syntax Highlighter built in PHP and jQuery that supports customizable languages and themes. It can highlight from a URL, a local file or WordPress post text. Crayon makes it easy to manage Language files and define custom language elements with regular expressions. It also supports some neat features like:</p><ul><li>Integrated Theme Editor!</li><li>Tag Editor in both Visual &amp; HTML editors</li><li>Toggled plain code</li><li>Toggled line numbers</li><li>Copy/paste code</li><li>Open code in a new window (popup)</li><li>Line wrapping</li><li>Code expanding</li><li>Minimizing</li><li>bbPress 2 support</li><li>Converting legacy code in blog posts/comments to &lt;pre&gt;</li><li>Remote request caching</li><li>Mixed Language Highlighting in a single Crayon</li><li>Mini Tags like [php][/php]</li><li>Inline Tags floating in sentences</li><li>Crayons in comments</li><li>`Backquotes` become code</li><li>pre tag support, option to use setting-value in the class attribute</li><li>Valid HTML 5 markup</li><li>Visual &amp; HTML editor compatible</li><li>Mobile/touchscreen device detection</li><li>Mouse event interaction (showing plain code on double click, toolbar on mouseover)</li><li>Tab sizes</li><li>Code title</li><li>Toggled toolbar</li><li>Retina buttons</li><li>Striped lines</li><li>Line marking (for important lines)</li><li>Line ranges (showing only parts of the code)</li><li>Starting line number (default is 1)</li><li>Local directory to search for local files</li><li>File extension detection</li><li>Live Preview in settings</li><li>Dimensions, margins, alignment, font-size, line-height, float</li><li>Extensive error logging</li></ul><p>The code highlight is very easy to use in back end with the toobar icon and window</p><p><a
href="http://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-318" src="http://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar.png?4b2a2c&amp;4b2a2c" alt="icon-tools bar" width="350" height="193" srcset="https://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar.png 350w, https://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar-300x165.png 300w" sizes="(max-width: 350px) 100vw, 350px" /></a></p><p>And the highlight code will be display in front end like this</p><p><a
href="http://wp2x.com/wp-content/uploads/2014/11/screenshot-3.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-317" src="http://wp2x.com/wp-content/uploads/2014/11/screenshot-3.png?4b2a2c&amp;4b2a2c" alt="screenshot-3" width="652" height="737" srcset="https://wp2x.com/wp-content/uploads/2014/11/screenshot-3.png 652w, https://wp2x.com/wp-content/uploads/2014/11/screenshot-3-265x300.png 265w" sizes="(max-width: 652px) 100vw, 652px" /></a></p><p>The post <a
rel="nofollow" href="https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/">Crayon Syntax Highlighter WordPress plugin</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Full width 100% for youtube video iframe</title><link>https://wp2x.com/full-width-100-youtube-video-iframe/</link> <comments>https://wp2x.com/full-width-100-youtube-video-iframe/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 28 Oct 2014 06:12:08 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[wordpress css]]></category> <category><![CDATA[wordpress html]]></category> <category><![CDATA[wordpress js]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=312</guid><description><![CDATA[<p>Today I will share you the issue what take me entire of day to solve about Full width 100% for youtube video iframe. Hope it will save your time. If you meet this issue, I believe it just take you 5 minutes to finish the task. &#160; There are 2 ways to solve this issue 1. ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/full-width-100-youtube-video-iframe/">Full width 100% for youtube video iframe</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Today I will share you the issue what take me entire of day to solve about Full width 100% for youtube video iframe. Hope it will save your time. If you meet this issue, I believe it just take you 5 minutes to finish the task.<span
id="more-312"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/10/video-full-width.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-313" src="http://wp2x.com/wp-content/uploads/2014/10/video-full-width.png?4b2a2c&amp;4b2a2c" alt="video-full-width" width="660" height="284" srcset="https://wp2x.com/wp-content/uploads/2014/10/video-full-width.png 660w, https://wp2x.com/wp-content/uploads/2014/10/video-full-width-300x129.png 300w" sizes="(max-width: 660px) 100vw, 660px" /></a></p><p>&nbsp;</p><p>There are 2 ways to solve this issue</p><p>1. Javascript to make Full width 100% iframe/embed</p><p>Simple add this jQuery code</p><pre class="lang:js decode:true ">// Find all YouTube videos
var $allVideos = $("iframe[src^='http://www.youtube.com']"),

    // The element that is fluid width
    $fluidEl = $("body");

// Figure out and save aspect ratio for each video
$allVideos.each(function() {

  $(this)
    .data('aspectRatio', this.height / this.width)

    // and remove the hard coded width/height
    .removeAttr('height')
    .removeAttr('width');

});

// When the window is resized
$(window).resize(function() {

  var newWidth = $fluidEl.width();

  // Resize all videos according to their own aspect ratio
  $allVideos.each(function() {

    var $el = $(this);
    $el
      .width(newWidth)
      .height(newWidth * $el.data('aspectRatio'));

  });

// Kick off one resize to fix all videos on page load
}).resize();</pre><p>Now, reload the page and see the magic.</p><p>2. CSS to make Full width 100% iframe/embed</p><p>Much more simple, you can apply this css tips and the result will be the same.</p><pre class="lang:css decode:true">.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper object,
.videoWrapper embed,  {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}</pre><p>Remember add class videoWrapper out of your video then the video inside this class will be display 100%.</p><p>Now, enjoy the result and welcome any comment.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/full-width-100-youtube-video-iframe/">Full width 100% for youtube video iframe</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/full-width-100-youtube-video-iframe/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Lock orientation to portrait layout in mobile web by js</title><link>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/</link> <comments>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sat, 18 Oct 2014 13:42:36 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[css]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[jquery mobile]]></category> <category><![CDATA[mobile web]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=307</guid><description><![CDATA[<p>Have you ever become crazy with orientation change? If yes then you are in the same issue with me some days ago. But I figured out the solution so that I share you here to save your time and my time if I want to use it later. Let &#8216;s lock orientation to portrait layout ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/">Lock orientation to portrait layout in mobile web by js</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Have you ever become crazy with orientation change? If yes then you are in the same issue with me some days ago. But I figured out the solution so that I share you here to save your time and my time if I want to use it later. Let &#8216;s lock orientation to portrait layout in mobile web by js by this code.<span
id="more-307"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/10/sreen-rotation.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter wp-image-308 size-medium" src="http://wp2x.com/wp-content/uploads/2014/10/sreen-rotation-300x157.jpg?4b2a2c&amp;4b2a2c" alt="sreen rotation" width="300" height="157" /></a></p><pre class="lang:js decode:true ">$(document).ready(function () {
  function reorient(e) {
    var portrait = (window.orientation % 180 == 0);
    $("body &gt; div").css("-webkit-transform", !portrait ? "rotate(-90deg)" : "");
  }
  window.onorientationchange = reorient;
  window.setTimeout(reorient, 0);
});</pre><p>The code expects the entire contents of your page to live inside a div just inside the body element. It rotates that div 90 degrees in landscape mode &#8211; back to portrait.</p><p>Left as an exercise to the reader: the div rotates around its centerpoint, so its position will probably need to be adjusted unless it&#8217;s perfectly square.</p><p>Also, there&#8217;s an unappealing visual problem. When you change orientation, Safari rotates slowly, then the top-level div snaps to 90degrees different. For even more fun, add</p><pre class="lang:css decode:true">body &gt; div { -webkit-transition: all 1s ease-in-out; }</pre><p>to your CSS. When the device rotates, then Safari does, then the content of your page does. Beguiling!</p><p><em>Reference: stackoverflow.com</em></p><p>The post <a
rel="nofollow" href="https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/">Lock orientation to portrait layout in mobile web by js</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Create Cronjob with custom nano editor in Linux/Mac</title><link>https://wp2x.com/create-cronjob-custom-nano-editor-linuxmac/</link> <comments>https://wp2x.com/create-cronjob-custom-nano-editor-linuxmac/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 07 Oct 2014 03:37:09 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=302</guid><description><![CDATA[<p>When create a cronjob in Linux or Mac, the default editor is VIM. But it is not easy and not comfortable to use VIM in the most case because it have too many hidden command shortcut key. In this case, I decide to use NANO editor instead.  To use nano as editor, it &#8216;s quite ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/create-cronjob-custom-nano-editor-linuxmac/">Create Cronjob with custom nano editor in Linux/Mac</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>When create a cronjob in Linux or Mac, the default editor is VIM. But it is not easy and not comfortable to use VIM in the most case because it have too many hidden command shortcut key. In this case, I decide to use NANO editor instead. <span
id="more-302"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/10/Downloads_—_sh_—_80×24.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter wp-image-303 size-full" src="http://wp2x.com/wp-content/uploads/2014/10/Downloads_—_sh_—_80×24-e1412652992599.png?4b2a2c&amp;4b2a2c" alt="Downloads_—_sh_—_80×24" width="584" height="172" srcset="https://wp2x.com/wp-content/uploads/2014/10/Downloads_—_sh_—_80×24-e1412652992599.png 584w, https://wp2x.com/wp-content/uploads/2014/10/Downloads_—_sh_—_80×24-e1412652992599-300x88.png 300w" sizes="(max-width: 584px) 100vw, 584px" /></a></p><p>To use nano as editor, it &#8216;s quite simple. You just need to use this code when create cronjob</p><pre class="lang:sh decode:true">env EDITOR=nano crontab -e</pre><p>Now, the editor open the cronjob will be nano, you just need to type your command and save it.</p><p>It simple but sometimes it will save us a lot of time.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/create-cronjob-custom-nano-editor-linuxmac/">Create Cronjob with custom nano editor in Linux/Mac</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/create-cronjob-custom-nano-editor-linuxmac/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>jQuery Mobile update popup layout after content change</title><link>https://wp2x.com/jquery-mobile-update-popup-layout-content-change/</link> <comments>https://wp2x.com/jquery-mobile-update-popup-layout-content-change/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Fri, 26 Sep 2014 08:34:56 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[jquery mobile]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=295</guid><description><![CDATA[<p>Recently we have a wordpress project with jQuery Mobile is the core framework to build the client theme. I meet the problem with popup with content change, so in the first popup show we only have the limited content text but then the content need to show &#8216;s much more than the first show, and ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/jquery-mobile-update-popup-layout-content-change/">jQuery Mobile update popup layout after content change</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Recently we have a wordpress project with jQuery Mobile is the core framework to build the client theme. I meet the problem with popup with content change, so in the first popup show we only have the limited content text but then the content need to show &#8216;s much more than the first show, and the layout become too bad.<span
id="more-295"></span></p><p><img
loading="lazy" class="aligncenter size-medium wp-image-296" src="http://wp2x.com/wp-content/uploads/2014/09/content_height-300x194.jpg?4b2a2c&amp;4b2a2c" alt="content_height" width="300" height="194" srcset="https://wp2x.com/wp-content/uploads/2014/09/content_height-300x194.jpg 300w, https://wp2x.com/wp-content/uploads/2014/09/content_height.jpg 745w" sizes="(max-width: 300px) 100vw, 300px" /></p><p>&nbsp;</p><p>But if we resize the windows, the popup display well again, that &#8216;s why I show you here to get the solution to make the popup show beautiful even though user don&#8217;t resize the windows. Here is the tips:</p><pre class="lang:js decode:true ">$("#your-popup").trigger('updatelayout');</pre><p>And to make sure you call this line</p><pre class="lang:js decode:true ">$(document).resize();</pre><p>Then everything should work well again :).</p><p>The post <a
rel="nofollow" href="https://wp2x.com/jquery-mobile-update-popup-layout-content-change/">jQuery Mobile update popup layout after content change</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/jquery-mobile-update-popup-layout-content-change/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Background Stretch and scale in CSS 100%</title><link>https://wp2x.com/background-stretch-scale-css-100/</link> <comments>https://wp2x.com/background-stretch-scale-css-100/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 16 Sep 2014 11:34:17 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=275</guid><description><![CDATA[<p>Background Stretch and scale in CSS is what you will need to do in responsive html slicing all of time. My situation happen all of times so that I share you this way to help you and remind me when I need it. The key and the magic to show background of a css layer ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/background-stretch-scale-css-100/">Background Stretch and scale in CSS 100%</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Background Stretch and scale in CSS is what you will need to do in responsive html slicing all of time. My situation happen all of times so that I share you this way to help you and remind me when I need it.<span
id="more-275"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/09/css-style-background-e1410867199533.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-276" src="http://wp2x.com/wp-content/uploads/2014/09/css-style-background-e1410867199533.png?4b2a2c&amp;4b2a2c" alt="css style background" width="600" height="308" /></a></p><p>The key and the magic to show background of a css layer in 100% scale is background-size. Just use it like this</p><pre class="lang:css decode:true ">#my_container {
background-size: 100% auto; /* width and height, can be %, px or whatever. */
}</pre><p>To preserve the aspect ratio of the image you should use &#8220;background-size: cover;&#8221; or &#8220;background-size: contain;&#8221;.</p><p>Scaling an image with CSS is not quite possible, but a similar effect can be achieved in the following manner, though.</p><p>Use this html:</p><pre class="lang:xhtml decode:true">&lt;div id="background"&gt;
    &lt;img src="img.jpg" class="stretch" alt="" /&gt;
&lt;/div&gt;</pre><p>with the following CSS:</p><pre class="lang:css decode:true">#background {

    width: 100%;

    height: 100%;

    position: absolute;

    left: 0px;

    top: 0px;

    z-index: 0;

}
.stretch {
width:100%;
height:100%;
}</pre><p>and you should be done!</p><p>In order to scale the image to be &#8220;full bleed&#8221; and maintain the aspect ratio, you can do this instead:</p><pre class="lang:css decode:true ">.stretch { min-width:100%; min-height:100%; width:auto; height:auto; }</pre><p>Reference: <a
href="http://stackoverflow.com/questions/376253/stretch-and-scale-css-background">http://stackoverflow.com/questions/376253/stretch-and-scale-css-background</a></p><p>The post <a
rel="nofollow" href="https://wp2x.com/background-stretch-scale-css-100/">Background Stretch and scale in CSS 100%</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/background-stretch-scale-css-100/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How to display Infinity symbol in HTML</title><link>https://wp2x.com/display-infinity-symbol-in-html/</link> <comments>https://wp2x.com/display-infinity-symbol-in-html/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Mon, 08 Sep 2014 03:17:01 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html tag]]></category> <category><![CDATA[html5]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=267</guid><description><![CDATA[<p>It &#8216;s my issue in current HTML slicing project what I think it will be useful to share here for you and hope it &#8216;s helpful for anyone who need it. In HTML I want to display the Infinity symbol in HTML ∞ Ok, this character is special html tags what is not easy to remember ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/display-infinity-symbol-in-html/">How to display Infinity symbol in HTML</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>It &#8216;s my issue in current HTML slicing project what I think it will be useful to share here for you and hope it &#8216;s helpful for anyone who need it. In HTML I want to display the <strong>Infinity symbol in HTML</strong><span
id="more-267"></span></p><h2 style="text-align: center; font-size: 50px;">∞</h2><p>Ok, this character is special html tags what is not easy to remember :). You can display this in html by this code:</p><pre class="lang:xhtml decode:true ">HTML entity &amp;infin; or &amp;#8734;</pre><p>It &#8216;s simple to display <strong>infinity symbol in html</strong>, ha?! Hope it help you too. Thanks</p><p><img
loading="lazy" class="aligncenter size-medium wp-image-268" src="http://wp2x.com/wp-content/uploads/2014/09/20130429-HTML-Tag2-300x300.jpg?4b2a2c&amp;4b2a2c" alt="20130429-HTML-Tag2" width="300" height="300" srcset="https://wp2x.com/wp-content/uploads/2014/09/20130429-HTML-Tag2.jpg 300w, https://wp2x.com/wp-content/uploads/2014/09/20130429-HTML-Tag2-150x150.jpg 150w, https://wp2x.com/wp-content/uploads/2014/09/20130429-HTML-Tag2-55x55.jpg 55w" sizes="(max-width: 300px) 100vw, 300px" /></p><p>The post <a
rel="nofollow" href="https://wp2x.com/display-infinity-symbol-in-html/">How to display Infinity symbol in HTML</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/display-infinity-symbol-in-html/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>What&#8217;s News in WordPress 4.0 Benny?</title><link>https://wp2x.com/whats-news-wordpress-4-0-benny/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Fri, 05 Sep 2014 02:05:34 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[wordpress news]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=259</guid><description><![CDATA[<p>That &#8216;s exiting to welcome WordPress 4.0 after many times upgrade. This &#8216;s really a perfect version what we can believe it &#8216;s stable and nice enough for our purpose use on desktop and mobile device. If you still doubt about what it can bring to us, you can check this video After updating you ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/whats-news-wordpress-4-0-benny/">What&#8217;s News in WordPress 4.0 Benny?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>That &#8216;s exiting to welcome WordPress 4.0 after many times upgrade. This &#8216;s really a perfect version what we can believe it &#8216;s stable and nice enough for our purpose use on desktop and mobile device. If you still doubt about what it can bring to us, you can check this video<span
id="more-259"></span></p><p
style="text-align: center;"><div
class="su-youtube su-u-responsive-media-yes"><iframe
width="600" height="400" src="https://www.youtube.com/embed/SYUMvznWlIU?" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title=""></iframe></div><p>After updating you will see this line</p><blockquote><p>Thank you for updating! WordPress 4.0 brings you a smoother writing and management experience.</p></blockquote><p>Yes, it &#8216;s really nice for our world! Thanks WordPress team.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/whats-news-wordpress-4-0-benny/">What&#8217;s News in WordPress 4.0 Benny?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> </channel> </rss>