<?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 &#8211; TUTORIALS PAGE</title>
	<atom:link href="https://tutorialspage.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://tutorialspage.com</link>
	<description>Free tutorials and daily notes</description>
	<lastBuildDate>Sun, 08 Oct 2023 21:21:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">105742871</site>	<item>
		<title>Limit the number of keywords in WordPress tag cloud to control PageRank</title>
		<link>https://tutorialspage.com/limit-the-number-of-keywords-in-wordpress-tag-cloud-to-control-pagerank/</link>
					<comments>https://tutorialspage.com/limit-the-number-of-keywords-in-wordpress-tag-cloud-to-control-pagerank/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Wed, 05 Jul 2017 09:52:58 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1500</guid>

					<description><![CDATA[Did you know that the default wordpress tags, labels or keywords from the sidebar can have a huge impact on your website? Well it does. Beginning with Version 2.8, the default tag limit in wordpress is set to 45, witch is quite large and can definitely affect PageRank on small blogs with less PageRank to &#8230; <a href="https://tutorialspage.com/limit-the-number-of-keywords-in-wordpress-tag-cloud-to-control-pagerank/" class="more-link">Continue reading<span class="screen-reader-text"> "Limit the number of keywords in WordPress tag cloud to control PageRank"</span></a>]]></description>
										<content:encoded><![CDATA[<p>Did you know that the default wordpress tags, labels or keywords from the sidebar can have a huge impact on your website? Well it does.</p>
<p>Beginning with Version 2.8, the default tag limit in wordpress is set to 45, witch is quite large and can definitely affect PageRank on small blogs with less PageRank to spread around. However the net affect can still be helpful on high authority blogs.<span id="more-1500"></span></p>
<h3>How to limit the number of keywords in WordPress tag cloud to control PageRank</h3>
<p>The taxonomy parameter was added so that any taxonomy could be used as the basis of generating the cloud. That means that a cloud for Categories or any other Custom Taxonomies can be presented to visitors.</p><pre class="urvanov-syntax-highlighter-plain-tag">wp_tag_cloud( $args );</pre><p>The $args variable is a simple array as follows:</p><pre class="urvanov-syntax-highlighter-plain-tag">$args = array(
'smallest' =&gt; 8,
'largest' =&gt; 22,
'unit' =&gt; 'pt',
'number' =&gt; 45,
'format' =&gt; 'flat',
'separator' =&gt; \\"\n\\",
'orderby' =&gt; 'name',
'order' =&gt; 'ASC',
'exclude' =&gt; null,
'include' =&gt; null,
'topic_count_text_callback' =&gt; default_topic_count_text,
'link' =&gt; 'view',
'taxonomy' =&gt; 'post_tag',
'echo' =&gt; true,
'child_of' =&gt; null
);</pre><p>By default, the usage shows:</p>
<ul>
<li>smallest &#8211; The smallest tag (lowest count) is shown at size 8</li>
<li>largest &#8211; The largest tag (highest count) is shown at size 22</li>
<li>unit &#8211; Describes &#8216;pt&#8217; (point) as the font-size unit for the smallest and largest values</li>
<li>number &#8211; Displays at most 45 tags</li>
<li>format &#8211; Displays the tags in flat (separated by whitespace) style</li>
<li>separator &#8211; Displays whitespace between tags</li>
<li>orderby &#8211; Order the tags by name</li>
<li>order &#8211; Sort the tags in ASCENDING fashion</li>
<li>exclude &#8211; Exclude no tags</li>
<li>include &#8211; Include all tags</li>
<li>topic_count_text_callback &#8211; Uses function default_topic_count_text</li>
<li>link &#8211; view</li>
<li>taxonomy &#8211; Use post tags for basis of cloud</li>
<li>echo &#8211; echo the results</li>
</ul>
<p>Another way to use is like in the next example:</p><pre class="urvanov-syntax-highlighter-plain-tag">wp_tag_cloud('smallest=15&amp;largest=40&amp;number=50&amp;orderby=count');</pre><p>So enjoy this and remember that maintaining a small outgoing links on your site maximize your webs site PageRank. And limiting the wordpress tag cloud can help a lot.</p>
<p>This is another simple function that does the trick:</p><pre class="urvanov-syntax-highlighter-plain-tag">//Register tag cloud filter callback
add_filter('widget_tag_cloud_args', 'tag_widget_limit');

//Limit number of tags inside widget
function tag_widget_limit($args){

//Check if taxonomy option inside widget is set to tags
if(isset($args['taxonomy']) &amp;&amp; $args['taxonomy'] == 'post_tag'){
$args['number'] = 10; //Limit number of tags
}

return $args;
}</pre><p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/limit-the-number-of-keywords-in-wordpress-tag-cloud-to-control-pagerank/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1500</post-id>	</item>
		<item>
		<title>How to embed video into a website &#8211; Ultimate tutorial</title>
		<link>https://tutorialspage.com/complete-tutorial-how-to-embed-video-into-website/</link>
					<comments>https://tutorialspage.com/complete-tutorial-how-to-embed-video-into-website/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Tue, 24 Jan 2017 07:41:23 +0000</pubDate>
				<category><![CDATA[Css3 & Html5]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1329</guid>

					<description><![CDATA[Embedding a video into HTML website seems an easy task, but there really are lots of aspects to take into consideration when you insert a video: File size and format (extensions and codecs) Browser and platform compatibility User internet connection (mobile vs desktop devices) Server resources (bandwidth, CPU, RAM) Privacy and data owning Content visibility &#8230; <a href="https://tutorialspage.com/complete-tutorial-how-to-embed-video-into-website/" class="more-link">Continue reading<span class="screen-reader-text"> "How to embed video into a website &#8211; Ultimate tutorial"</span></a>]]></description>
										<content:encoded><![CDATA[<p>Embedding a video into HTML website seems an easy task, but there really are lots of aspects to take into consideration when you insert a video:</p>
<ul>
<li>File size and format (extensions and codecs)</li>
<li>Browser and platform compatibility</li>
<li>User internet connection (mobile vs desktop devices)</li>
<li>Server resources (bandwidth, CPU, RAM)</li>
<li>Privacy and data owning</li>
<li>Content visibility and engagement</li>
</ul>
<p>Therefore, depending on where you will insert the video and the application you use, you will be affected by some of the above or not. So let&#8217;s get our hands on it and do a step by step research about <strong>what is the simplest way to embed a video</strong>.<span id="more-1329"></span></p>
<ol>
<li><a title="" href="#id_1">How to embed video into <strong>HTML</strong> website?</a>
<ol>
<li><a title="" href="#id_11">Embed video using HTML5 video tag</a></li>
<li><a title="" href="#id_12">Embed video using HTML embed tag</a></li>
<li><a title="" href="#id_13">Embed video using HTML object tag</a></li>
<li><a title="" href="#id_14">Use iframe to embed video from YouTube and Vimeo</a></li>
<li><a title="" href="#id_15">Embed vs object vs video vs iframe comparison</a></li>
</ol>
</li>
<li><a title="" href="#id_2">How to embed video into CMS site</a>
<ol>
<li><a title="" href="#id_21">Insert a video on a <strong>WordPress</strong> site</a>
<ol>
<li><a title="" href="#id_211">Upload video on WordPress site</a></li>
<li><a title="" href="#id_212">Insert video from YouTube, Vimeo, and others</a></li>
<li><a title="" href="#id_213">Use build in functionality vs plugins</a></li>
</ol>
</li>
<li><a title="" href="#id_22">Insert video into Joomla and Drupal site</a></li>
</ol>
</li>
<li><a title="" href="#id_3">How to embed video in <strong>email</strong></a></li>
<li><a title="" href="#id_4">How to embed videos in presentations</a>
<ol>
<li><a title="" href="#id_41">Microsoft <strong>PowerPoint</strong></a></li>
<li><a title="" href="#id_42">Google Slides</a></li>
</ol>
</li>
<li><a title="" href="#id_5">How to use <strong>Dropbox</strong> to embed videos</a>
<ol>
<li><a title="" href="#id_51">Use Dropbox as a video provider</a></li>
<li><a title="" href="#id_52">Add video to Dropbox Paper</a></li>
</ol>
</li>
<li><a title="" href="#id_6">How to embed a video in Social Networks</a></li>
<li><a title="" href="#id_7">Conclusion: Why use third-party platforms for embedding videos is better than self-hosted video ones?/a&gt;</a>
<ol>
<li><a title="" href="#id_71">Self-hosted videos pros and cons</a></li>
<li><a title="" href="#id_72">Third-party video hosting pros and cons</a></li>
</ol>
</li>
</ol>
<h2 id="id_1">1. How to embed video into HTML website?</h2>
<p>A video file can be embedded into a plain HTML page in various ways. Different HTML tags are/were used in different situations and they are all useful. So let&#8217;s take a look to the last arrived on the list.</p>
<h3 id="id_11">1.1 Embed video using HTML5 video tag</h3>
<p>Like I mentioned, in order to insert a video into your HTML page, you can use the newly introduced&nbsp;
			<span id="urvanov-syntax-highlighter-69d4ca0d816a9276897305" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-r ">&lt;video&gt;</span></span></span> tag. The video tag was recently introduced into the <a href="https://www.w3.org/TR/html5/embedded-content-0.html#the-video-element">HTML 5 recommendations</a>.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;video width="320" height="240" controls&gt;
    &lt;source src="your_video.mp4" type="video/mp4"&gt;
    &lt;source src=" your_video.ogg" type="video/ogg"&gt;
&lt;/video&gt;</pre><p>The 
			<span id="urvanov-syntax-highlighter-69d4ca0d816b3391742277" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">video</span></span></span>&nbsp;tag is really simple, and it works by automatically adding video controls attributes, like <em>play, pause, and volume </em>to the container. It is a good practice to include a width and height attribute. If this last 2 are not set, the browser will not know how much space to assign to the element and the video will make a jump/blink after the browser reads the file.</p>
<p>The 
			<span id="urvanov-syntax-highlighter-69d4ca0d816b6924984763" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">source</span></span></span>&nbsp;component lets you specify a video file to be loaded by the browser. The content between the 
			<span id="urvanov-syntax-highlighter-69d4ca0d816ba240588433" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-o">&lt;</span><span class="crayon-i">video</span><span class="crayon-o">&gt;</span></span></span>&nbsp; and 
			<span id="urvanov-syntax-highlighter-69d4ca0d816bd442101016" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-o">&lt;</span><span class="crayon-o">/</span><span class="crayon-i">video</span><span class="crayon-o">&gt;</span></span></span>&nbsp; labels&nbsp;will be interpreted depending on the browser built-in codecs</p>
<p>You can then set simple attributes to customize your player. For example, if you want to start a video automatically on page load, use the<em> 
			<span id="urvanov-syntax-highlighter-69d4ca0d816c0454295125" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">autoplay</span></span></span>&nbsp;</em>attribute:</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;video width="320" height="240" autoplay&gt;
   &lt;source src="movie.mp4" type="video/mp4"&gt;
   &lt;source src="movie.ogg" type="video/ogg"&gt;
&lt;/video&gt;</pre><p></p>
<h4>HTML5 video tag &#8211; Browser support</h4>
<p>There are mainly tree video format that are used to cover all major browsers:</p>
<ul>
<li><strong>Mp4</strong> &#8211; MIME type <em>video/mp4</em></li>
<li><strong>Webm</strong> &#8211; MIME type <em>video/webm</em></li>
<li><strong>Ogg</strong> &#8211; MIME type <em>video/ogg</em></li>
</ul>
<p>By specifying the video file in all these formats you will have the best browser coverage possible.</p>
<table>
<tbody>
<tr>
<td><strong>Browser</strong></td>
<td><strong>MP4</strong></td>
<td><strong>WebM</strong></td>
<td><strong>Ogg</strong></td>
</tr>
<tr>
<td>Internet Explorer</td>
<td>ok</td>
<td>&#8211;</td>
<td>&#8211;</td>
</tr>
<tr>
<td>Chrome</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
</tr>
<tr>
<td>Firefox</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
</tr>
<tr>
<td>Safari</td>
<td>ok</td>
<td>&#8211;</td>
<td>&#8211;</td>
</tr>
<tr>
<td>Opera</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
</tr>
</tbody>
</table>
<p>A small incision here about the video tag and YouTube videos. You can use the HTML5 video tag to embed videos from YouTube to your website. Please note that this will not show the YouTube video preview so it is a smart thing to show an image/poster for this purpose.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;video controls="true" poster="/images/w3html5.gif"&gt;
    &lt;source src="https://www.youtube.com/watch?v=3bGNuRtlqAQ" type="video/mp4" /&gt;
&lt;/video&gt;</pre><p></p>
<h3 id="id_12">1.2 Embed video using HTML embed tag</h3>
<p><strong>The embed tag</strong> has been around for a long time thanks to the Netscape friends. Although&nbsp;it had a very good acceptation it was considered nonstandard&nbsp;and not included in the HTML 4 specification. It later becomes part of the new <a href="https://www.w3.org/TR/html5/embedded-content-0.html#the-embed-element">HTML5 standard</a> and it seems to have a very good universal support.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;embed src="simple_video.mpeg" width="250" &nbsp;height="180" autostart="false" /&gt;</pre><p>As you can notice the 
			<span id="urvanov-syntax-highlighter-69d4ca0d816ce321381196" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">embed</span></span></span>&nbsp;tag does not require a closing tag. You can simply add your file to the source attribute and you are good to go. The embed tag was mainly used to include applications data and other media content. This are the main files that are supported by the <em>embed</em> tag.</p>
<ul>
<li>.<strong>mpeg</strong> &#8211; video content</li>
<li>.<strong>wmv</strong>&nbsp;&#8211; video content</li>
<li>.<strong>mov</strong> &#8211; video content</li>
<li>.<strong>swf</strong> &#8211; application (could be video or any other type of content)</li>
</ul>
<h4>HTML embed tag &#8211; Browser support</h4>
<table>
<tbody>
<tr>
<td><strong>Internet Explorer</strong></td>
<td><strong>Chrome</strong></td>
<td><strong>Firefox</strong></td>
<td><strong>Safari</strong></td>
<td><strong>Opera</strong></td>
</tr>
<tr>
<td>ok</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
</tr>
</tbody>
</table>
<h4>Available attributes for the embed tag</h4>
<p>There is a really long list of attributes that are supported by the embed tag. On the other hand, the only ones found in the HTML5 specifications are <em>width, height, src, type a</em>nd the global attributes (<em>id, class, style, title etc</em>)</p>
<p>Most attributes are not part of the HTML specification but are widely supported. Here are some of them that are useful when used with media files.</p>
<ul>
<li><strong>autostart</strong> &#8211; sets if the media file will play on page load</li>
<li><strong>volume</strong> &#8211; set the volume when the media file starts playing. You can set the value from 0 to 100</li>
<li><strong>loop</strong> &#8211; sets whether the document will be replayed after it is done. Can have the genuine or false esteem.</li>
<li><strong>playcount</strong> &#8211; this sets up how frequently the document will be replayed. For instance
			<span id="urvanov-syntax-highlighter-69d4ca0d816d1850985210" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">playcount</span><span class="crayon-o">=</span><span class="crayon-s">"2"</span></span></span>&nbsp; implies it will be replayed two times and after it will stop.</li>
</ul>
<h4>NOEMBED fallback for embed video files</h4>
<p>Just in case there is someone who is browsing your website using Lynx browser or any other browser that does not have support for the embed tag, there is a fallback for them. You can use the&nbsp;
			<span id="urvanov-syntax-highlighter-69d4ca0d816d4164007443" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">noembed</span></span></span>&nbsp;tag like this.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;embed src="simple_video.mpeg" width="250" &nbsp;height="180" autostart="false"&gt;
	&lt;noembed&gt;
		&lt;a href="/transcripts/video_transcript.html"&gt;Transcript of "My favourite video"&lt;/a&gt;
	&lt;/noembed&gt;
&lt;/embed&gt;</pre><p></p>
<h3 id="id_13">1.3 How to embed video files using the HTML object tag</h3>
<p>Embedding multimedia files is not the main application for the 
			<span id="urvanov-syntax-highlighter-69d4ca0d816db312180765" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-t">object</span></span></span>&nbsp;tag. Despite this, you can use it to insert videos into your HTML document.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;object  data="simple_video.mpeg" width="400" height="400"&gt;
	&lt;param name="autoplay" value="true"&gt;
	&lt;param name="volume" value="50"&gt;
&lt;/object&gt;</pre><p>You can set any other param that you need to control the file.</p>
<h4>HTML object tag &#8211; Browser support</h4>
<table>
<tbody>
<tr>
<td><strong>Internet Explorer</strong></td>
<td><strong>Chrome</strong></td>
<td><strong>Firefox</strong></td>
<td><strong>Safari</strong></td>
<td><strong>Opera</strong></td>
</tr>
<tr>
<td>ok</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
</tr>
</tbody>
</table>
<p>According to the HTML 5 recommendations, you should use video for video tag for files.</p>
<h3 id="id_14">1.4 Use IFRAME to embed from third-party video platforms like YouTube or Vimeo</h3>
<p>Another way to display a video in your HTML page is by using an 
			<span id="urvanov-syntax-highlighter-69d4ca0d816e1335924755" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">iframe</span></span></span>&nbsp;. Dedicated video content platforms like YouTube or Vimeo provide a simple <em>iframe&nbsp;</em>to display a video on your website.</p>
<h4>Embed video from YouTube</h4>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;iframe "420" height="315" src="https://www.youtube.com/embed/yUtUHfwHI9I"&gt;&lt;/iframe&gt;</pre><p></p>
<p><iframe src="https://www.youtube.com/embed/yUtUHfwHI9I" width="560" height="315"></iframe></p>
<p>To control the player, you will have to send some params via 
			<span id="urvanov-syntax-highlighter-69d4ca0d816e8766249437" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-cn">GET</span></span></span>&nbsp; in the URL as follows:</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;iframe width="420" height="315" src="https://www.youtube.com/embed/yUtUHfwHI9I?autoplay=1"&gt;&lt;/iframe&gt;</pre><p>The list of available params can be found here: <a href="https://developers.google.com/youtube/player_parameters#Parameters">https://developers.google.com/youtube/player_parameters#Parameters</a></p>
<p>You can also found the option to dynamically generate the <em>iframe </em>on YouTube website:</p>
<ul>
<li>Click the &#8216;Share&#8217; button below the video</li>
<li>Click the &#8216;Embed&#8217; button</li>
<li>Copy full 
			<span id="urvanov-syntax-highlighter-69d4ca0d816ee198566561" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">iframe</span></span></span>&nbsp; code that was given and <em>paste</em> it into the HTML.</li>
</ul>
<p>If you did that you should get something similar to this:</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/yGx0RJ3WzrA?rel=0&amp;amp;controls=0&amp;amp;showinfo=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;</pre><p><iframe src="https://www.youtube.com/embed/yGx0RJ3WzrA?rel=0&amp;controls=0&amp;showinfo=0" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p>YouTube is providing, you with the iframe code for sharing purposes, but you can also display your video with the embed, object or video tag (although it is not recommended for long-term functionality).</p>
<h4>Embed Video from Vimeo</h4>
<p>Vimeo offers various ways to share his&nbsp;videos but still, if you click on their share button you will get a simple iframe like below:</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;iframe src="https://player.vimeo.com/video/172794545" width="560" height="315" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</pre><p><iframe src="https://player.vimeo.com/video/172794545" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p>Vimeo also offers the <strong>oEmbed API</strong> for embedding their video content. According to <a href="http://oembed.com/">oembed.com</a>, <strong>oEmbed</strong> is a format for allowing an embedded representation of a URL on third-party sites. You can find more about the oEmbed API documentation on Vimeo developer website here <a href="https://developer.vimeo.com/apis/oembed">https://developer.vimeo.com/apis/oembed</a></p>
<h4>HTML iframe TAG &#8211; BROWSER SUPPORT</h4>
<table>
<tbody>
<tr>
<td><strong>Internet Explorer</strong></td>
<td><strong>Chrome</strong></td>
<td><strong>Firefox</strong></td>
<td><strong>Safari</strong></td>
<td><strong>Opera</strong></td>
</tr>
<tr>
<td>ok</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
<td>ok</td>
</tr>
</tbody>
</table>
<h3 id="id_15">1.5 embed vs object vs video vs iframe comparison</h3>
<p><strong>embed</strong> &#8211; it exists from almost the beginning of times, and it is quite very supported by all browsers but it has just been added to the HTML 5 specs. It doesn&#8217;t require a plugin to be specified for the embedded content; that&#8217;s up to the browser to figure out.</p>
<p><strong>object</strong> &#8211; was added to HTML 4 as an alternative to 
			<span id="urvanov-syntax-highlighter-69d4ca0d816f8124696116" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">embed</span></span></span>&nbsp; and it requires you to specify a plugin. Old Internet Explorer versions had really bad support for it. It is largely used for flash and other apps.</p>
<p><strong>video</strong> &#8211; was added in the HTML5 specs and is quite well supported at this point. Browsers have codecs support built-in rather than relying on third-party plugins. Different browsers support different codecs so you will have to provide different file extensions if you want to be reached by all major browsers.</p>
<p><strong>iframe</strong> &#8211; the iframe embed code is actually, a window to a remote page that contains your player with the loaded file. You have limited control over what is displayed.</p>
<h4>What video embedding method should I choose?</h4>
<p>It seems to be a general agreement that you should NOT use embed or object tags for this purpose. HTML5 has introduced a very specific tag for this and that is why you should use the video tag.</p>
<p>And this is where opinions split and everything really depends on your special case.</p>
<p>If you have a:</p>
<ul>
<li>good web server</li>
<li>some programming skills</li>
<li>reasonable understanding of what storing a big video file locally means</li>
<li>you don&#8217;t care too much about bandwidth</li>
<li>You don&#8217;t care that others can link to your files and take advantage of your bandwidth</li>
</ul>
<p>&#8230;. then you can use the HTML 5 video tag and have complete control over your player, content statistics and much more.</p>
<p>If what you are looking for a way to publish a video and just forget about anything else go ahead and use <em>iframes</em>. YouTube, Vimeo, and many others have a solid experience in serving videos in the best way possible depending on the user browser, screen resolution, connectivity, and some other factors. So you will be ok.</p>
<h4>What about iframe responsiveness?</h4>
<p>As I said, an iframe is just a window to content stored on another website. This means that the browser can not know what width and height will have the content delivered in it unless you specify it. Smashing Magazine has a great article on this matter. Here is a small extraction of the solution:</p>
<p><strong>The embed markup</strong></p>
<div class="video-container">
<pre class="urvanov-syntax-highlighter-plain-tag">&lt;iframe src="https://player.vimeo.com/video/172794545" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</pre><br />
<strong>The embed CSS&nbsp;style</strong></p>
</div>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">.wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}</pre><p>You can read the full article here: <a href="https://www.smashingmagazine.com/2014/02/making-embedded-content-work-in-responsive-design/">https://www.smashingmagazine.com/2014/02/making-embedded-content-work-in-responsive-design/</a></p>
<h2 id="id_2">2. How to embed video into a CMS site</h2>
<p>CMS branch looks to be a little bit different when it comes to inserting videos. WordPress, Joomla, Drupal PrestaShop and others have all different ways to inserting a video into their content pages.</p>
<p>Some of them, WordPress, for example, have developed really good and user-friendly support for embedding videos.</p>
<h3 id="id_21">2.1. Insert a video on a WordPress site</h3>
<p>In our days to insert a video inside a WordPress post or page is really simple. There are mainly 2 ways of embedding a video in WordPress. You can either upload it and host it yourself or load it<br />
from a third-party video platform like YouTube.</p>
<h4 id="id_211">2.1.1. Upload video on WordPress site</h4>
<p>The standard and native embed code for embedding a video stored locally would be similar to this:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&#91;embed width="123" height="456"&#93;http://yoursite.com/path_to_your/file.mp4&#91;/embed&#93;</pre><p></p>
<p>Or like this:</p><pre class="urvanov-syntax-highlighter-plain-tag">&#91;video src="/path_to_your/file.mp4"&#93;</pre><p></p><pre class="urvanov-syntax-highlighter-plain-tag">&#91;video mp4="/path_to_your/file.mp4" ogv="/path_to_your/file.ogv" webm="/path_to_your/file.webm"&#93;</pre><p></p>
<p>I will start by saying that I (and everybody else) strongly discourage uploading video directly to WordPress or your personal hosting account. If you do a quick search you will find plenty of reasons about why this is not a good practice and why you should let this to YouTube, Vimeo, Amazon, or any other video dedicated service.</p>
<p>So, if you still want to go on and upload a video to WordPress you have to know that this is the default video file formats that you are allowed to upload:</p>
<table>
<tbody>
<tr>
<td>.mp4</td>
<td>.m4v</td>
<td>.mov</td>
</tr>
<tr>
<td>.wmv</td>
<td>.avi</td>
<td>.avi</td>
</tr>
<tr>
<td>.3gp</td>
<td>.3g2</td>
<td>.ogv</td>
</tr>
</tbody>
</table>
<p>If you would like to add your own extension you can do that by adding a filter. Let&#8217;s try to add the <em>WebM</em> video extension.</p><pre class="urvanov-syntax-highlighter-plain-tag">add_filter('mime_types', 'custom_upload_mimes');

function custom_upload_video_ext ( $actual_mimes=array() ) {

    $actual_mimes['webm'] = 'video/webm';

    return $actual_mimes;

}</pre><p>You should add this to your 
			<span id="urvanov-syntax-highlighter-69d4ca0d8170f398405903" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-t">function</span><span class="crayon-sy">.</span><span class="crayon-i">php</span></span></span>&nbsp; inside your theme directory. Please note that in multi-site version you have a section under &#8220;MultiSite Dashboard &gt; Settings &gt; Network Settings&#8221;</p>
<p>There is also a plugin to add or edit allowed upload file extension under WordPress. You can do that with the <a title="Edit uploadable file extensions under WordPress" href="https://wordpress.org/plugins/wp-add-mime-types/">WP Add Mime Types</a> plugin.</p>
<p>Anyway, once done that you can step forward and actually upload the video inside your blog post. Go to your <strong>Add media</strong> button and upload the video file like you usually do with any image. You can also add a video to your <strong>Media Library</strong>, to be available for future usage.</p>
<p>Please note that in order to play the video files with the WordPress standard <strong>Video Player</strong> you will need to have them encoded with the <em>MPEG-4</em> codec. This means that the file extension must be <em>.mp4</em>.</p>
<p>For other file extensions and codecs, you will have to do a small research and find a custom player.</p>
<h4 id="id_212">2.1.2. Insert a video from YouTube, Vimeo, and others</h4>
<p>From version 2.9 and on WordPress has incorporated <strong>automatic link detection</strong>. This means it will turn the URL into a <strong>native embed code</strong> and provide a preview in the WP visual editor. According to WordPress documentation:</p>
<blockquote><p>To embed a video or another object into a post or page, place its URL into the content area. Make sure the URL is on its own line and not hyperlinked</p></blockquote>
<p>Here is a simple example of how you should <strong>include a YouTube link in the WP</strong> visual editor.</p><pre class="urvanov-syntax-highlighter-plain-tag">Check here my favorite video on Youtube

https://www.youtube.com/watch?v=nrIPxlFzDi0

Rate it if you like it</pre><p>This is the equivalent of using a shortcode like this:</p>
<div class="jetpack-video-wrapper"><iframe loading="lazy" title="The Rolling Stones - (I Can&#039;t Get No) Satisfaction (Official Lyric Video)" width="420" height="236" src="https://www.youtube.com/embed/nrIPxlFzDi0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>
<p>YouTube is not the only one that admits automatic embed. The list is big and the WordPress guys are continually working to add new ones.</p>
<table>
<tbody>
<tr>
<td>YouTube</td>
<td>Vimeo</td>
<td>VideoPress</td>
</tr>
<tr>
<td>Instagram</td>
<td>Spotify</td>
<td>SoundCloud</td>
</tr>
<tr>
<td>Facebook</td>
<td>Twitter</td>
<td>Flickr</td>
</tr>
</tbody>
</table>
<p>You can check here the full list of sites That WordPress will automatically detect and embed the object: <a href="https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F">https://codex.wordpress.org/Embeds</a></p>
<p>I would also like to mention that<strong> WordPress allows the use of oEmbed</strong> object format although it only attends to an internal whitelist of known sites. But if you know what you are doing you can add more to the list.</p>
<p>Here is an oEmbed example link request that will respond with a JSON formatted object.</p><pre class="urvanov-syntax-highlighter-plain-tag">https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/76979871</pre><p>The <strong>oEmbed</strong> response will be similar to the following snippet:</p><pre class="urvanov-syntax-highlighter-plain-tag">{
    "type": "video",
    "version": "1.0",
    "provider_name": "Vimeo",
    "provider_url": "https:\/\/vimeo.com\/",
    "title": "The New Vimeo Player (You Know, For Videos)",
    "author_name": "Vimeo Staff",
    "author_url": "https:\/\/vimeo.com\/staff",
    "is_plus": "0",
    "html": "&lt;iframe src=\"https:\/\/player.vimeo.com\/video\/76979871\" width=\"480\" height=\"270\" frameborder=\"0\" title=\"The New Vimeo Player (You Know, For Videos)\" webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;\/iframe&gt;",
    "width": 480,
    "height": 270,
    "duration": 62,
    "description": "It may look (mostly) the same on the surface, but under the hood, we totally rebuilt our player. Here\u2019s a quick rundown of some of the coolest new features:\n\n\u2022 Lightning-fast playback\n\u2022 Redesigned Share screen\n\u2022 Closed caption and subtitle compatible\n\u2022 HTML5 by default\n\u2022 Purchase-from-player functionality for embedded Vimeo On Demand trailers\n\u2022 More responsive than ever (go ahead, resize it, we dare you!!!)\n\nWe\u2019re really proud of these updates. So proud that we made a spiffy new page to showcase all the reasons why we have the best video player in the galaxy. Check it out here: http:\/\/vimeo.com\/player\n\nIn short, this is a player that even haters can love.",
    "thumbnail_url": "https:\/\/i.vimeocdn.com\/video\/452001751_295x166.webp",
    "thumbnail_width": 295,
    "thumbnail_height": 166,
    "thumbnail_url_with_play_button": "https:\/\/i.vimeocdn.com\/filter\/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F452001751_295x166.webp&amp;src1=http%3A%2F%2Ff.vimeocdn.com%2Fp%2Fimages%2Fcrawler_play.png",
    "upload_date": "2013-10-15 14:08:29",
    "video_id": 76979871,
    "uri": "\/videos\/76979871"
}</pre><p></p>
<h4 id="id_213">2.1.3. Use build-in functionality vs plugins</h4>
<p>Well, this really depends on what are you expecting. If you are a light user of the video content and you will need to<strong> include a video into your posts</strong> from time to time, you should probably be ok with using the built-in functionality.</p>
<p>But if you are a heavy user of the <strong>video content</strong> and you want to<strong> insert daily video</strong> and build a gallery and have playlists, cache screenshots of the video and maybe scrap some snippets from the video descriptions you will probably need a plugin for that. There are lots of them in the WordPress plugin directory depending on your needs and you can start your search there. I will include a review of some of them in a future tutorial and link it from here, so make sure you bookmark it so you can come back later.</p>
<h3 id="id_22">2.2. Insert video into Joomla and Drupal site</h3>
<p>There is really more beyond WordPress. Joomla is really popular and Drupal is here to stay. So I will also drop a line or two about them.</p>
<p>To <strong>insert a video into a Joomla site</strong> you will first have to enable it from the editor customization. By default Joomla&#8217;s editor strips out tags like iframe and others. Go Plugin Manager and find your editor config, remove iframe from the prohibited tag and save your settings. On the other hand, depending on your version or your user role, Joomla may also filter the iframe tag. Go to Global Configuration and search for Text filters. Select No filtering and you should be good to go.</p>
<p>Finally, you will then embed the video the same as you would normally do. Just copy-paste the standard embed code from the YouTube page. After copying the embed code, go to your article and click your Source Code button. Paste it there and check your preview. Congratulations&#8230;you have just inserted your first video into Joomla.</p>
<p><strong>How about Drupal?</strong> Can we insert a video into Drupal? If you are using Drupal you probably are used to installing modules. There are few modules on the Drupal website that are meant to help you to Insert a video file into your content page. <strong><a href="https://www.drupal.org/project/video_embed_field">Video Embed Field</a></strong> is a Drupal module that creates a simple field type that allows you to embed videos from YouTube and Vimeo and show their thumbnail previews simply by entering the video&#8217;s URL.</p>
<h2 id="id_3">3. How to embed video in email</h2>
<p><strong>Video content is one of the best marketing tool</strong> out there, so why no use it in your email campaigns? Well, there is a simple reason for that. The email will be blocked before even being opened by your customer. Most (not to say all) email software or platforms are not allowing <strong>scripting, embeds, and iframes inside the email body</strong>. So your email will be filtered by the anti-spam filter and never arrive at his destination.</p>
<p>Although is not perfect, there is a workaround for this. Marketers recommend you place a picture of the video inside your email newsletter and link it to the real video. Your customer will have to <strong>click on the image of the video</strong> to be redirected to the page where you have your video embedded with an autoplay option enabled. This way, the user will only have to click once to see the video. Please note that most mobile devices will not allow the autoplay option and the user will have to tap again, but you will not have this problem on desktop devices.</p>
<p>Another way of doing something similar is to insert an animated GIF image like below.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1370" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2017/01/Muybridge_race_horse_animated.gif?resize=300%2C200&#038;ssl=1" alt="insert video in email using animated gif" width="300" height="200"></p>
<p>You would be surprised what a good designer can do. Also, take into consideration that animated GIF images are not always small in size.</p>
<p>On the other hand, there is some exception to this rule.<strong> Gmail, for example, use auto-detection for YouTube videos.</strong> So just by copy-pasting the video URL Gmail will transform it into a video player on destination and place it just above the email body.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone wp-image-1357 size-full" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2017/01/embed-youtube-in-gmail.png?resize=543%2C359&#038;ssl=1" alt="how to embed video in email" width="543" height="359" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2017/01/embed-youtube-in-gmail.png?w=543&amp;ssl=1 543w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2017/01/embed-youtube-in-gmail.png?resize=300%2C198&amp;ssl=1 300w" sizes="auto, (max-width: 543px) 85vw, 543px" /></p>
<h2 id="id_4">4. How to embed videos in presentations</h2>
<p>How about documents like presentations. Presentations&nbsp;are (should be) very visual, dynamic and interactive. So inserting a video content inside a PowerPoint presentation or Google0-slide worth a try.</p>
<h3 id="id_41">4.1. Add video inside Microsoft PowerPoint docs</h3>
<p><strong>PowerPoint allows you to embed a video from your PC</strong> directly inside the document. You can also embed a video from YouTube. Booth this will only work on PowerPoint 2010, 2013, 2016 o later versions. So make sure you have updated to the latest.</p>
<p>To embed a video go to <strong>Insert / Video / Video on my PC.</strong> That&#8217;s about it. After the video is loaded, you can start to configure options like size, autoplay, and few more details.</p>
<p>To embed a video from YouTube (At this moment YouTube is the only supported website), first you have to get the embed code from the YouTube page. Go to<strong> Insert / Online Video</strong>. Paste your code and start configuring playback options.</p>
<p>Another option, if you are using old versions of PowerPoint (like 2007) your only option is to include a simple link to the video.</p>
<h3 id="id_42">4.2. Add video inside Google Slides presentation</h3>
<p>If you are using <strong>Google Slides</strong> you are in good hands. YouTube videos are <strong>natively supported</strong> and you can even search them from inside the presentation.Just go to the Insert menu, select video and search for your favorite <strong>video to insert into your Google Slides presentation</strong>.</p>
<p>How about using a simple video file that is not hosted on YouTube. You can do a simple hack just like for email marketing campaigns. You can make a screenshot of the video and insert it in place. Upload the .mp4 file to your <strong>Google Drive</strong> and link it to the image. With a simple click, you will redirect the user to your video file.</p>
<h2 id="id_5">5. How to use Dropbox to embed videos</h2>
<p><strong>Dropbox</strong> is not meant to be used for this purpose. Not too long ago some were using it as a CDN to save their server&#8217;s bandwidth and resources. Dropbox was forced to change its policies and apply some restrictions, especially on free accounts. So if you need a long-term solution for streaming your video content, do not use Dropbox for hosting them.</p>
<h3 id="id_51">5.1. Use Dropbox as a video provider</h3>
<p>If you still insist in <strong>hosting the video on Dropbox</strong> and publish it on your website, you can use the HTML5&nbsp;video tag for doing that.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;video width="512" height="288" controls="controls"&gt;
&lt;source src="https://www.dropbox.com/s/os60r63ogwfl408/your_video_here.mp4" type="video/mp4" /&gt;
&lt;/video&gt;</pre><p>Remember that according to Dropbox support, public links for free accounts may not use more than 10GB of bandwidth per day while that limit is 250GB per day for paid Dropbox accounts. The<strong> links are automatically suspended if any of your files exceed that limit</strong>.</p>
<h3 id="id_52">5.2. Add video to Dropbox Paper</h3>
<p>Don&#8217;t know about you, but I am a big fan of <strong>Dropbox Paper</strong>. So I wanted to test it against embedding a simple video and see how it responds.</p>
<p>There are mainly the same <strong>2 ways to add a video to Dropbox Pape</strong>r. Add it from your computer using drag and drop directly into the document or by copying the URL of the media file. Currently <strong>Dropbox Paper have native recognition for his own Dropbox files, YouTube, Vimeo, Facebook and Google Drive</strong> among others</p>
<h2 id="id_6">6. How to embed a video in Social Networks</h2>
<p><strong>Inserting video to social media networks</strong> is probably the easiest thing these days. You just have to upload your video from your local drive and you are good to go. Big Social Networks like Facebook, Google+ Twitter, and others have native detection for YouTube, Vimeo, and other video platforms. So you don&#8217;t have to worry about it.</p>
<p><strong>Facebook</strong>, for example, offers the other way around. You can upload your video to his servers and then <strong>embed it into your website</strong>. Please note that if you want to embed a video from Facebook you must set the visibility to as <em>public</em>.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1356" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2017/01/embed-video-from-facebook.png?resize=521%2C410&#038;ssl=1" alt="embed video from facebook to your site" width="521" height="410" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2017/01/embed-video-from-facebook.png?w=521&amp;ssl=1 521w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2017/01/embed-video-from-facebook.png?resize=300%2C236&amp;ssl=1 300w" sizes="auto, (max-width: 521px) 85vw, 521px" /></p>
<h2 id="id_7">7. Conclusion: Why use third-party platforms for embedding videos is better than self-hosted video ones?</h2>
<p>In conclusion, I will try to be as short as possible resuming the pros and cons of hosting your own videos when embedding vs uploading to YouTube, Vimeo or any others to spread your video content.</p>
<h3 id="id_71">7.1 Self-hosted videos pros and cons</h3>
<p><strong>Pros</strong>: Although there are not too many good and strong arguments, there are some to take into consideration.</p>
<ul>
<li><strong>Your data is yours</strong> &#8211; This can be very important if you care about privacy and especially about brand development.</li>
<li><strong>More traffic for you</strong> &#8211; Because the video is hosted only on your site, if a person wants to watch that video will have to visit you.</li>
<li><strong>More shares of your website</strong> &#8211; If somebody likes your video it is possible that it will share your site and not your YouTube.</li>
<li><strong>Full control over your design</strong> &#8211; What you build is what you have. If you are a good developer you can build a great player that looks professional and there will be no third-party watermark on it.</li>
<li><strong>Your visitors will remain on your site when the video ends</strong> &#8211; It is very easy to be distracted with other content when viewing videos on YouTube for example.</li>
<li><strong>Your video will be ads-free</strong> &#8211; NO ads will be shown to your user before or after the video. Or at least you can control and decide it and provide your own ads.</li>
</ul>
<p><strong>Cons</strong>: Here are the bad guys of self-hosted videos. And there are quite strong.</p>
<ul>
<li><strong>A lot of bandwidth</strong> &#8211; Hosting videos yourself can cause you a lot of server bandwidth usage.</li>
<li><strong>Big file size</strong> &#8211; You can quickly fill your server storage.</li>
<li><strong>Slow loading</strong> &#8211; Streaming video by several users can use lots of server CPU and RAM. This can cause slow loading and make the video to freeze.</li>
<li><strong>File compatibility</strong> &#8211; You will have to convert your video to various formats if you plan to rich all your users.</li>
<li><strong>Player compatibility</strong> &#8211; Finding the perfect video player that will perform ok in most browsers, resolutions, devices, and platforms can be quite tricky.</li>
<li><strong>Connectivity speed</strong> &#8211; Playing the video file depending on your user connection&nbsp;is another matter. You may want to serve a 1080p HD video to a high-speed Internet connection and maybe a 240p version to a 3G mobile device.</li>
<li><strong>Loss of traffic</strong> &#8211; You can easily loss some extra visits from a social network like YouTube.</li>
</ul>
<h3 id="id_72">7.2 Third-party video hosting pros and cons</h3>
<p><strong>Pros</strong>: Hosting your video on another website will give about the opposite. You will louse control in benefit of speed and performance</p>
<ul>
<li><strong>0 bandwidth cost for you</strong> &#8211; No bandwidth is used from your server.</li>
<li><strong>Multiple file formats</strong> &#8211; Your file is automatically converted in multiple file formats and loaded depending of the user requirements to provide full compatibility</li>
<li><strong>Multiple file size</strong> &#8211; User will be served a different file size depending of his Internet speed connection.</li>
<li><strong>Friendly user interface</strong> &#8211; You will use a well-known player for all your users.</li>
<li><strong>Social shares</strong> &#8211; You video can go viral on social networks in no-time.</li>
<li><strong>Privacy</strong> &#8211; Some platforms allow you to post private content.</li>
</ul>
<p>Cons: And finally some not-to-good things about video hosting</p>
<ul>
<li><strong>Bandwidth can cost you extra</strong> &#8211; Although 0 bandwidth sounds great, some platforms can cost you extra for more traffic.</li>
<li><strong>Annoying ads</strong> &#8211; Sometimes users are blown-up&nbsp;with ads at the beginning, in the middle of after the video ends.</li>
<li><strong>Privacy</strong> &#8211; You do not always own your content and that can be a big pain in the ass.</li>
<li><strong>Content spread</strong> &#8211; You do not have full control over how the player looks like and where your content is re-posted</li>
<li><strong>Easy distraction</strong> &#8211; It is quite easy for your visitor to go with a funny videos about cats instead of continue visiting your site.</li>
</ul>
<p>And this is about all about the different ways to embed videos. Hope it is useful to you. Please let me know your opinions about where you host your video sand why.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/complete-tutorial-how-to-embed-video-into-website/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://www.dropbox.com/s/os60r63ogwfl408/your_video_here.mp4" length="0" type="video/mp4" />

		<post-id xmlns="com-wordpress:feed-additions:1">1329</post-id>	</item>
		<item>
		<title>Remove admin bar wordpress backend and frontend</title>
		<link>https://tutorialspage.com/remove-admin-bar-wordpress-backend-and-frontend/</link>
					<comments>https://tutorialspage.com/remove-admin-bar-wordpress-backend-and-frontend/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Tue, 13 Dec 2016 22:21:55 +0000</pubDate>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=936</guid>

					<description><![CDATA[So, as mentioned above, supposedly the new Toolbar is meant to be impossible to remove. The reason for this is that the new Toolbar is a combination between the old Admin Bar and the Dashboard Header. If you remove the Toolbar, then you are effectively removing the Dashboard Header, which is something the folks at &#8230; <a href="https://tutorialspage.com/remove-admin-bar-wordpress-backend-and-frontend/" class="more-link">Continue reading<span class="screen-reader-text"> "Remove admin bar wordpress backend and frontend"</span></a>]]></description>
										<content:encoded><![CDATA[<p>So, as mentioned above, supposedly the new Toolbar is meant to be impossible to remove. The reason for this is that the new Toolbar is a combination between the old Admin Bar and the Dashboard Header.</p>
<p>If you remove the Toolbar, then you are effectively removing the Dashboard Header, which is something the folks at WordPress don’t think you should be doing.<span id="more-936"></span></p>
<h3>Is it Impossible to Remove the Toolbar?</h3>
<p>The toolbar, where the Admin Bar was in old versions, contains vital links for you to log-out, and the links to go back to the main site. It <strong>CANNOT be disabled</strong>, and has no hooks to be disabled it. Besides if you are using Multisite, all the network admin links are in there.</p>
<p>On the other hand <strong>you CAN</strong> however <strong>turn it off on the front end</strong> in your profile. Remember this is only for your profile.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1309" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/toolbar-option.png?resize=735%2C304&#038;ssl=1" alt="" width="735" height="304" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/toolbar-option.png?w=735&amp;ssl=1 735w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/toolbar-option.png?resize=300%2C124&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>If you would like to accomplish the same thing for all your users (remember this is just for the front end toolbar) you can place the following into your functions.php file.</p><pre class="urvanov-syntax-highlighter-plain-tag">function remove_admin_tolbar_on_frontend() {
	remove_action('wp_head', '_admin_bar_bump_cb');
}
add_action('get_header', 'remove_admin_tolbar_on_frontend');</pre><p>There are also tons of plugins that can help you a hide the toolbar. You can get one from here: <a href="https://wordpress.org/plugins/search.php?type=term&amp;q=remove+admin+bar">https://wordpress.org/plugins/search.php?type=term&amp;q=remove+admin+bar</a></p>
<p>Some are using the same practice explained here and some are only hiding it using css. Note that if you are using CSS the admin toolbar is still loaded but not displayed to the user.</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/remove-admin-bar-wordpress-backend-and-frontend/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">936</post-id>	</item>
		<item>
		<title>How to deactivate all WordPress plugins from MySQL database</title>
		<link>https://tutorialspage.com/deactivate-wordpress-plugins-mysql-database/</link>
					<comments>https://tutorialspage.com/deactivate-wordpress-plugins-mysql-database/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Tue, 13 Dec 2016 09:32:52 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1284</guid>

					<description><![CDATA[WordPress plugins can be easily disabled from the database. You just have to open your favorite client and connect to your favorite client and go to your site database. I normally use HeidSQL, phpMyAdmin or Adminer but you can use any other. For this specific task you must know your database connection credentials. If you &#8230; <a href="https://tutorialspage.com/deactivate-wordpress-plugins-mysql-database/" class="more-link">Continue reading<span class="screen-reader-text"> "How to deactivate all WordPress plugins from MySQL database"</span></a>]]></description>
										<content:encoded><![CDATA[<p><strong>WordPress plugins</strong> can be easily <strong>disabled from the database</strong>. You just have to open your favorite client and connect to your favorite client and go to your site database. I normally use <strong>HeidSQL</strong>, <strong>phpMyAdmin</strong> or <strong>Adminer</strong> but you can use any other. For this specific task you must know your database connection credentials. If you have an FTP connection you can find that in your wp-config.php file on the wordpress installation root</p>
<p>You will have to go to the 
			<span id="urvanov-syntax-highlighter-69d4ca0d81ae6952179429" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">wp_options</span></span></span> table and search for a specific value in the 
			<span id="urvanov-syntax-highlighter-69d4ca0d81aec298211294" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">option_name</span></span></span> column. Please note that the table prefix (
			<span id="urvanov-syntax-highlighter-69d4ca0d81aef349203012" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">wp</span></span></span> ) is the standard prefix but can be different from one installation to another.<span id="more-1284"></span></p>
<p>You have to search for 
			<span id="urvanov-syntax-highlighter-69d4ca0d81af3887660387" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">active_plugins</span></span></span> , so after selecting the option table, go to your <em>Search tab</em> to do that.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1290" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-7.png?resize=840%2C475&#038;ssl=1" alt="" width="840" height="475" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-7.png?w=942&amp;ssl=1 942w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-7.png?resize=300%2C170&amp;ssl=1 300w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-7.png?resize=768%2C435&amp;ssl=1 768w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></p>
<p>You can also run the next SQL sentence to search for the 
			<span id="urvanov-syntax-highlighter-69d4ca0d81af6715522683" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">active_plugins</span></span></span> key</p><pre class="urvanov-syntax-highlighter-plain-tag">SELECT * FROM `wp_options` WHERE `option_name` LIKE 'active_plugins'</pre><p>To<strong> deactivate or disable all plugins on your WordPress</strong> installation you must delete the 
			<span id="urvanov-syntax-highlighter-69d4ca0d81afd065771825" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">option_value</span></span></span> content like you can see below.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1292" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-8.png?resize=793%2C150&#038;ssl=1" alt="" width="793" height="150" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-8.png?w=793&amp;ssl=1 793w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-8.png?resize=300%2C57&amp;ssl=1 300w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-8.png?resize=768%2C145&amp;ssl=1 768w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>IMPORTANT: You may be interested in saving your that value before deleting it just in case you want to restore it at a later time.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1293" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-9.png?resize=631%2C151&#038;ssl=1" alt="" width="631" height="151" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-9.png?w=631&amp;ssl=1 631w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-9.png?resize=300%2C72&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>There is also a quicker way to do this by running this next SQL sentence. but I prefer the first way since I get to save the value before doing any changes to my database.</p><pre class="urvanov-syntax-highlighter-plain-tag">UPDATE wp_options SET option_value = '' WHERE option_name LIKE 'active_plugins'</pre><p>Please let me know if you know other ways to disable all wordpress plugins directly from the database.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/deactivate-wordpress-plugins-mysql-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1284</post-id>	</item>
		<item>
		<title>WordPress is asking for FTP credentials to update plugins, FINALLY RESOLVED</title>
		<link>https://tutorialspage.com/how-to/</link>
					<comments>https://tutorialspage.com/how-to/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Sun, 13 Nov 2016 11:11:30 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1050</guid>

					<description><![CDATA[I was dealing with this problem for a while and did not know how to give WordPress permission to write to his folders when updating plugins or themes. On the other hand this was forcing me to chmod[crayon-69d4ca0d81c00951716234-i/]  folder with 777 permissions. I am not a heavy image uploader, so when I was in need &#8230; <a href="https://tutorialspage.com/how-to/" class="more-link">Continue reading<span class="screen-reader-text"> "WordPress is asking for FTP credentials to update plugins, FINALLY RESOLVED"</span></a>]]></description>
										<content:encoded><![CDATA[<p>I was dealing with this problem for a while and did not know how to give WordPress permission to write to his folders when updating plugins or themes.</p>
<p>On the other hand this was forcing me to chmod
			<span id="urvanov-syntax-highlighter-69d4ca0d81c00951716234" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">wp</span><span class="crayon-o">-</span><span class="crayon-v">content</span><span class="crayon-o">/</span><span class="crayon-v">uploads</span></span></span>  folder with 777 permissions. I am not a heavy image uploader, so when I was in need of updating I was just chmod to 777 and then, after uploading my stuff, get back to 755.</p>
<p>I am not a Linux lover, geek, guru (or how they call it) so I had no clue about why this happened on my VPS or how to fix that. But as a respectable &#8220;self-directed learner&#8221; as I am, I had to dig into the situation.<span id="more-1050"></span></p>
<p>So this was my task list:</p>
<ol>
<li>Make a list of errors and possible relationship between them &#8211; others then the obvious permissions issue</li>
<li>Gather some documentation on this and understand why it is happening in the first place</li>
<li>See how other solved the errors and how can I apply it to my case.</li>
<li> Actually solve it on my Linux installation with Parallels Plesk  &#8211; and not die trying.</li>
</ol>
<h3>This are my issues</h3>
<ol>
<li>WordPress asks for FTP username and password while it&#8217;s uploading/upgrading a plugin, a theme or WP himself.</li>
<li>The 777 permissions are needed when I upload images (or any other media  files) to my uploads directory.</li>
<li>My mortgage is really expensive. (Later I have found out that this has nothing to do with the Apache permissions problem).</li>
</ol>
<p>I was unable to upload images nor any other files using the WordPress Media Uploader. Could not upload plugins or themes via the WordPress automatic updater.</p>
<p>You don&#8217;t have to be a genius to know that images are uploaded via PHP and PHP is running on apache, so apache does not have permission to upload files. I seems that apache is a service and also a user in Linux. So after all, this it is a simple user permission.</p>
<blockquote><p>Bottom line: Apache can not write to my WordPress folders</p></blockquote>
<h3>This is why all this happened in the first place</h3>
<p>When mod_php is used to execute PHP scripts on a web server it does not have permission to write to the file system if it does not own it. I uploaded files via FTP. So the files were assigned to the ftp user and the Apache user does not have permission to edit them. This is really a common problem when working with a CMS like WordPress.</p>
<p>On the other hand, this also happen if a php process creates a file. This can not be later edited by the FTP user.</p>
<p>&nbsp;</p>
<p>I had to<strong> set up PHP to run as FastCGI</strong> as it allows FTP and PHP scripts equal access, meaning file upload and edit functionality within the CMS works like a charm without any other special file permission configuration.</p>
<blockquote><p><strong>set up PHP to run as FastCGI</strong></p></blockquote>
<p>To do this in <strong>Plesk</strong> you will have to go to your domain <em>Hosting Settings</em> under the <em>Websites &amp; Domains</em> tab.</p>
<p>Under the Web scripting and statistics secction you will se the PHP support option and you will have to change the Run PHP as part to the FastCGI Option.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1303" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-11.png?resize=708%2C208&#038;ssl=1" alt="" width="708" height="208" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-11.png?w=708&amp;ssl=1 708w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/12/Image-11.png?resize=300%2C88&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>Here is a complete explanation of all options available here with the pros and con that each one of them has a cording to the official Plesk Documentation and Help Portal. (<a href="https://docs.plesk.com/en-US/12.5/administrator-guide/web-hosting/php-management/php-handler-types.75145/">https://docs.plesk.com/en-US/12.5/administrator-guide/web-hosting/php-management/php-handler-types.75145/</a>)</p>
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<tbody>
<tr>
<th>Handler type</th>
<th>Performance</th>
<th>Memory usage</th>
<th>Handler details</th>
</tr>
<tr>
<td>
<p class="tablebodytext"><strong>Apache module</strong></p>
</td>
<td>
<p class="tablebodytext">High</p>
</td>
<td>
<p class="tablebodytext">Low</p>
</td>
<td>This handler is only available in Plesk for Linux. It is the least secure option as all PHP scripts are executed on behalf of the apache user. This means that all files created by PHP scripts of any plan subscriber have the same owner (apache) and the same permission set. Thus, it is possible for a user to affect the files of another user or some important system files. You can avoid some security issues by turning the PHP safe_mode option on. This disables a number of PHP functions that have potential security risks. This may lead to inoperability of some web apps. The safe_mode option is considered to be obsolete and was removed in PHP 5.4.</td>
</tr>
<tr>
<td>
<p class="tablebodytext"><strong>ISAPI extension</strong></p>
</td>
<td>
<p class="tablebodytext">High</p>
</td>
<td>
<p class="tablebodytext">Low</p>
</td>
<td>
<p class="tablebodytext">This handler is only available in Plesk for Windows. The ISAPI extension can provide site isolation if a dedicated IIS application pool is switched on for subscriptions. Site isolation means that the sites of different customers run their scripts independently. Thus, an error in one PHP script does not affect the work of other scripts. In addition, PHP scripts run on behalf of a system user associated with a hosting account. The ISAPI extension handler is not supported starting from PHP 5.3</p>
</td>
</tr>
<tr>
<td>
<p class="tablebodytext"><strong>CGI application</strong></p>
</td>
<td>
<p class="tablebodytext">Low</p>
</td>
<td>
<p class="tablebodytext">Low</p>
</td>
<td>
<p class="tablebodytext">The CGI handler provides PHP script execution on behalf of a system user associated with a hosting account. On Linux, this behavior is possible only when the suEXEC module of the Apache web server is on (default option). In other cases, all PHP scripts are executed on behalf of the apache user. By default, the CGI handler is unavailable to Plesk customers.</p>
</td>
</tr>
<tr>
<td>
<p class="tablebodytext"><strong>FastCGI application</strong></p>
</td>
<td>
<p class="tablebodytext">High</p>
</td>
<td>
<p class="tablebodytext">High</p>
</td>
<td>
<p class="tablebodytext">The FastCGI handler runs PHP scripts on behalf of a system user associated with a hosting account.</p>
</td>
</tr>
<tr>
<td>
<p class="tablebodytext"><strong>PHP-FPM application</strong></p>
</td>
<td>
<p class="tablebodytext">High</p>
</td>
<td>
<p class="tablebodytext">Low</p>
</td>
<td>
<p class="tablebodytext">This handler is only available in Plesk for Linux. The PHP-FPM is an advanced version of FastCGI which offers significant benefits for highly loaded web applications.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>This may also help. There is a special directive for wordpress for not to ask to FTP credentials. For this you can add the following line to your 
			<span id="urvanov-syntax-highlighter-69d4ca0d81c06069908436" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">wp</span><span class="crayon-o">-</span><span class="crayon-v">config</span><span class="crayon-sy">.</span><span class="crayon-v">php</span></span></span> after 
			<span id="urvanov-syntax-highlighter-69d4ca0d81c0c515216556" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-e">define</span><span class="crayon-sy">(</span><span class="crayon-s">'WP_DEBUG'</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-t">false</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></span></span> line.</p><pre class="urvanov-syntax-highlighter-plain-tag">define('FS_METHOD', direct);</pre><p>Hope this helped you trow all the process. Please let me know if you think I have omitted something, or how it worked on your specific server configuration.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/how-to/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1050</post-id>	</item>
		<item>
		<title>Enable/Disable WordPress Automatic Core, Plugins and Themes Updates</title>
		<link>https://tutorialspage.com/enabledisable-wordpress-automatic-updates/</link>
					<comments>https://tutorialspage.com/enabledisable-wordpress-automatic-updates/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Fri, 12 Feb 2016 09:15:35 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1062</guid>

					<description><![CDATA[Back in 2013, the WordPress 3.7 introduces the automatic update feature. There are 4 types of updates and that includes, the WP core, plugins, themes and languages. Although updates are a good thing to do, from a security point of view, there are some aspects that you will want to take into consideration when doing &#8230; <a href="https://tutorialspage.com/enabledisable-wordpress-automatic-updates/" class="more-link">Continue reading<span class="screen-reader-text"> "Enable/Disable WordPress Automatic Core, Plugins and Themes Updates"</span></a>]]></description>
										<content:encoded><![CDATA[<p>Back in 2013, the WordPress 3.7 introduces the<strong> automatic update feature</strong>. There are 4 types of updates and that includes, the WP core, plugins, themes and languages.</p>
<p>Although updates are a good thing to do, from a security point of view, there are some aspects that you will want to take into consideration when doing an update.</p>
<p>So you may want to choose the <em>time</em> of the update, you may want to choose<em> what to update</em> and most of all you would like to take a<em> full backup</em>, just in case things don&#8217;t go out well, specially when updating themes.</p>
<p>So if you want to have it all controlled and take decisions after you first test everything, you can completely disable all automatic updates by adding this line to your 
			<span id="urvanov-syntax-highlighter-69d4ca0d81d55535009507" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">wp</span><span class="crayon-o">-</span><span class="crayon-v">config</span><span class="crayon-sy">.</span><span class="crayon-v">php</span></span></span> .<span id="more-1062"></span></p>
<h3>Disable WordPress Auto Updates:</h3>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">define( 'AUTOMATIC_UPDATER_DISABLED', true );</pre><p>WordPress sees two types of updates: minor and major. Major updates add additional functionality to the WordPress platform. This can be easily identified as WordPress
			<span id="urvanov-syntax-highlighter-69d4ca0d81d5e617773771" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-cn">3.9</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-cn">4.0</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-cn">4.1</span></span></span>  etc.</p>
<p>Minor updates are the updates of a major version of WordPress that was released to correct security holes and correct bugs. Their version number increases by 0.01. For example 
			<span id="urvanov-syntax-highlighter-69d4ca0d81d61636581403" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-cn">4.2.1</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-cn">4.2.2</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-cn">4.2.3</span></span></span>  etc.</p>
<p>By default, WordPress is configured to apply all minor updates automatically as soon as they are released.</p>
<h3>Enable Core Updates for Minor Releases (default):</h3>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">define( 'WP_AUTO_UPDATE_CORE', 'minor' );</pre><p>If you want to disable core updates, you can do that by using the following line of code in your config file.</p>
<h3>Disable All Core Updates</h3>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">define( 'WP_AUTO_UPDATE_CORE', false );</pre><p>YOu can also install automatically all minor and major updates of WordPress by adding the following code to wp-config.php.</p>
<h3>Enable All Core Updates, Including Minor and Major:</h3>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">define( 'WP_AUTO_UPDATE_CORE', true );</pre><p>There are also other ways to achieves this. For example you can use filters in your themes function or in your plugin files.</p>
<h3>Use filters to change updates status</h3>
<p>Here is a simple way to control all WordPress core automatic update</p><pre class="urvanov-syntax-highlighter-plain-tag">// Disabling All Updates Via Filter
add_filter( 'automatic_updater_disabled', '__return_true' );

// Core Updates via Filter
add_filter( 'auto_update_core', '__return_false' );

//disable development updates 
add_filter( 'allow_dev_auto_core_updates', '__return_false' );

//disable minor updates
add_filter( 'allow_minor_auto_core_updates', '__return_false' );
 
//disable major updates      
add_filter( 'allow_major_auto_core_updates', '__return_false' );</pre><p>&nbsp;</p>
<p>And you can also <strong>control automatic updates of themes and plugins</strong> by using this filters:</p><pre class="urvanov-syntax-highlighter-plain-tag">// Disable automatic updates for All plugins:
add_filter( 'auto_update_plugin', '__return_false' );

// Disable automatic updates for All themes:
add_filter( 'auto_update_theme', '__return_false' );</pre><p>&nbsp;</p>
<p>And finally here is how you can disable the <strong>automatic update of the translation files</strong></p><pre class="urvanov-syntax-highlighter-plain-tag">// To disable translation file updates, use the following:
add_filter( 'auto_update_translation', '__return_false' );</pre><p>Hope this helps you in your projects, it certainly helped me</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/enabledisable-wordpress-automatic-updates/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1062</post-id>	</item>
		<item>
		<title>Change default 1M max upload filesize limit for WordPress Mutisite</title>
		<link>https://tutorialspage.com/change-default-1m-max-upload-filesize-limit-for-wordpress-mutisite/</link>
					<comments>https://tutorialspage.com/change-default-1m-max-upload-filesize-limit-for-wordpress-mutisite/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Thu, 11 Feb 2016 09:33:45 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1055</guid>

					<description><![CDATA[If you are like me playing around with the WordPress Multisite feature and you&#8217;ve run into the max allowed upload filesize limit of 1M, you are in the right place to fix it. There is a not quite intuitive (for me) option in the Super admin dashboard that allows you to change this. Please note &#8230; <a href="https://tutorialspage.com/change-default-1m-max-upload-filesize-limit-for-wordpress-mutisite/" class="more-link">Continue reading<span class="screen-reader-text"> "Change default 1M max upload filesize limit for WordPress Mutisite"</span></a>]]></description>
										<content:encoded><![CDATA[<p>If you are like me playing around with the WordPress Multisite feature and you&#8217;ve run into the <strong>max allowed upload filesize limit of 1M</strong>, you are in the right place to fix it.</p>
<p>There is a not quite intuitive (for me) option in the Super admin dashboard that allows you to change this. Please note that this does not overwrite your apache or php.ini settings if this last one is smaller. Here you can apply the rule of the most restrictive.</p>
<p>So here are the steps to achieve this:</p>
<p>Here are the steps to change the Maximum upload file size within WP admin:<span id="more-1055"></span></p>
<ul>
<li>Click Network Admin, at the top-left of your WordPress dashboard.</li>
<li>In the main menu on your left side, just hover over Settings and then click network Settings.</li>
<li>Scroll to the bottom and almost at the end of the list you will find the Max upload file size. You must specify a value in KB.</li>
<li>Apply Changes and you are good to go.</li>
</ul>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-1056" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/Wordpress-max-uploaded-file-size.png?resize=560%2C157&#038;ssl=1" alt="Wordpress max uploaded file size" width="560" height="157" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/Wordpress-max-uploaded-file-size.png?w=560&amp;ssl=1 560w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/Wordpress-max-uploaded-file-size.png?resize=300%2C84&amp;ssl=1 300w" sizes="auto, (max-width: 560px) 85vw, 560px" /></p>
<p>Like I said, if your value is bigger than the one you have specified in your 
			<span id="urvanov-syntax-highlighter-69d4ca0d81e86687853489" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-o">/</span><span class="crayon-v">etc</span><span class="crayon-o">/</span><span class="crayon-v">php</span><span class="crayon-sy">.</span><span class="crayon-v">ini</span></span></span>  or in your 
			<span id="urvanov-syntax-highlighter-69d4ca0d81e8c407502665" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-sy">.</span><span class="crayon-v">htaccess</span></span></span> , it will not been overwritten. You will have to further tweak your server settings to achieve your desired maximum upload file value in your WordPress multisite installation.</p>
<p>This are some value that may help you to get the job done:</p><pre class="urvanov-syntax-highlighter-plain-tag">post_max_size = 10M

upload_max_filesize = 10M

memory_limit = 64M

max_execution_time = 250

max_input_time = 250</pre><p>On the other hand WordPress itself has another settings in the 
			<span id="urvanov-syntax-highlighter-69d4ca0d81e93043168397" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">wp</span><span class="crayon-o">-</span><span class="crayon-v">config</span><span class="crayon-sy">.</span><span class="crayon-v">php</span></span></span>  file that may be tweaked.</p><pre class="urvanov-syntax-highlighter-plain-tag">define('WP_MEMORY_LIMIT', '10M');</pre><p>So hope this helps you. I will soon post a specific tutorial about how to change the settings via your ini file, htaccess, or even directly in your php scripts. You can subscribe to receive it in your mailbox.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/change-default-1m-max-upload-filesize-limit-for-wordpress-mutisite/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1055</post-id>	</item>
		<item>
		<title>Migrating multisite WP, don&#8217;t forget to edit wp-config.php</title>
		<link>https://tutorialspage.com/migrating-multisite-wp-dont-forget-to-edit-wp-config-php/</link>
					<comments>https://tutorialspage.com/migrating-multisite-wp-dont-forget-to-edit-wp-config-php/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Sun, 07 Feb 2016 13:38:26 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=987</guid>

					<description><![CDATA[I have previously write about migrating WP using the database search/replace php tool. But migrating a MultiSite intalation is a little bit different. This is the first time I am playing with WordPress and the multisite feature, so I am learning from my mistakes. There is a small change that I missed the first time I have &#8230; <a href="https://tutorialspage.com/migrating-multisite-wp-dont-forget-to-edit-wp-config-php/" class="more-link">Continue reading<span class="screen-reader-text"> "Migrating multisite WP, don&#8217;t forget to edit wp-config.php"</span></a>]]></description>
										<content:encoded><![CDATA[<p>I have previously write about <a href="https://tutorialspage.com/the-easy-way-to-migrate-wordpress-using-search-and-replace-serialized-database-entries/">migrating WP</a> using the database search/replace php tool. But migrating a MultiSite intalation is a little bit different.</p>
<p>This is the first time I am playing with WordPress and the multisite feature, so I am learning from my mistakes. There is a small change that I missed the first time I have read the documentation in WP Codex about <a href="https://codex.wordpress.org/Moving_WordPress" target="_blank">Moving WordPress</a>:</p>
<blockquote><p>If database name or user changes, edit wp-config.php to have the correct values.</p></blockquote>
<p><span id="more-987"></span><br />
Did you notice, the small &#8220;edit wp-config.php&#8221; in there. Well, I didn&#8217;t!!</p>
<p>Not doing this adjustment will end up in some errors on the multisite part. When trying to do to your Super Admin Dashboard you will be redirected to the old site domain and not be able to access the multisite dashboard menu.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-988" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/multisite-migration-super-admin-redirect-to-old-place.png?resize=624%2C233&#038;ssl=1" alt="multisite migration super admin redirect to old place" width="624" height="233" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/multisite-migration-super-admin-redirect-to-old-place.png?w=624&amp;ssl=1 624w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/multisite-migration-super-admin-redirect-to-old-place.png?resize=300%2C112&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>This is due to the changes that you have done to activate multisite in your Super admin area, under Settings / Network configuration.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-990" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/multisite-migratian-change-url-settings-in-htaccess.png?resize=528%2C289&#038;ssl=1" alt="multisite migratian change url settings in htaccess" width="528" height="289" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/multisite-migratian-change-url-settings-in-htaccess.png?w=528&amp;ssl=1 528w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/multisite-migratian-change-url-settings-in-htaccess.png?resize=300%2C164&amp;ssl=1 300w" sizes="auto, (max-width: 528px) 85vw, 528px" /></p>
<p>So to do this the right way you will have to edit the 
			<span id="urvanov-syntax-highlighter-69d4ca0d81fb8008026767" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">wp</span><span class="crayon-o">-</span><span class="crayon-v">config</span><span class="crayon-sy">.</span><span class="crayon-v">php</span></span></span>  as fallows:</p><pre class="urvanov-syntax-highlighter-plain-tag">/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'my-new-domain-name.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);</pre><p>Please note that I am not putting 
			<span id="urvanov-syntax-highlighter-69d4ca0d81fc1741387055" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">http</span><span class="crayon-o">:</span><span class="crayon-c">//</span></span></span>  nor the trailing slash 
			<span id="urvanov-syntax-highlighter-69d4ca0d81fc4121722877" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-o">/</span></span></span>      after 
			<span id="urvanov-syntax-highlighter-69d4ca0d81fc7082914250" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">my</span><span class="crayon-o">-</span><span class="crayon-r">new</span><span class="crayon-o">-</span><span class="crayon-i">domain</span><span class="crayon-o">-</span><span class="crayon-i">name</span><span class="crayon-sy">.</span><span class="crayon-i">com</span></span></span></p>
<p>Prepending your domain with 
			<span id="urvanov-syntax-highlighter-69d4ca0d81fcb309318399" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">www</span><span class="crayon-sy">.</span></span></span> depends of your preferences. I prefer no www and I have my own arguments for it, but this is another subject.</p>
<p>Well, this is all I had to say about this. It&#8217;s really nothing, but it made me lose a lot of time before I figure it out. Next time I will be paying more attention to the documentation. <a href="http://lmgtfy.com/?q=RTFM">RTFM </a>as other say <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/migrating-multisite-wp-dont-forget-to-edit-wp-config-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">987</post-id>	</item>
		<item>
		<title>WordPress rename/change Post name to a different post type</title>
		<link>https://tutorialspage.com/wordpress-renamechange-post-name-to-a-different-post-type/</link>
					<comments>https://tutorialspage.com/wordpress-renamechange-post-name-to-a-different-post-type/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Fri, 05 Feb 2016 09:33:17 +0000</pubDate>
				<category><![CDATA[Case study]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=931</guid>

					<description><![CDATA[There are times when you wold like to rename the default posts to something else. For example, I used a WordPress installation to created a real estate related website from a standard WordPress install. I needed to add a custom post houses so that the client would be able to add the content to the website, &#8230; <a href="https://tutorialspage.com/wordpress-renamechange-post-name-to-a-different-post-type/" class="more-link">Continue reading<span class="screen-reader-text"> "WordPress rename/change Post name to a different post type"</span></a>]]></description>
										<content:encoded><![CDATA[<p>There are times when you wold like to rename the default <em><strong>posts</strong></em> to something else. For example, I used a WordPress installation to created a real estate related website from a standard WordPress install.</p>
<p>I needed to add a custom post <em><strong>houses</strong> </em>so that the client would be able to add the content to the website, but on the other hand I did not need to use the standard post type since I did not need the blog or news section. So why not convert it to something else.<span id="more-931"></span></p>
<p>Here is a simple way to do it. Note that this only changes the <span style="text-decoration: underline;"><em>Posts</em></span> <strong>name</strong> to <span style="text-decoration: underline;"><em>Houses</em></span> and does not change the 
			<span id="urvanov-syntax-highlighter-69d4ca0d820f5516295230" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">posts</span></span></span>  slug to 
			<span id="urvanov-syntax-highlighter-69d4ca0d820fa858744684" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">houses</span></span></span> . So if you ever refer to the house post type in your coding you will still refer to &#8220;posts&#8221;. This also maintain any changes and customization that the theme made to the post type. Hope this is clear enough.</p><pre class="urvanov-syntax-highlighter-plain-tag">/*
 * Change 'post' name to 'Houses'
 */

function dev_edit_admin_menus() {
    global $menu;
    global $submenu;

    $menu[5][0] = 'Houses'; // Change Posts to Houses
    $submenu['edit.php'][5][0] = 'Houses';
    $submenu['edit.php'][10][0] = 'Add House';
    $submenu['edit.php'][16][0] = 'House Tags';
}

function dev_change_post_object() {
    global $wp_post_types;

    

    $labels = &amp;$wp_post_types['post']-&gt;labels;



    $labels-&gt;name = 'Houses';
    $labels-&gt;singular_name = 'House';
    $labels-&gt;add_new = 'Add House';
    $labels-&gt;add_new_item = 'Add House';
    $labels-&gt;edit_item = 'Edit House';
    $labels-&gt;new_item = 'House';
    $labels-&gt;view_item = 'View House';
    $labels-&gt;search_items = 'Search Houses';
    $labels-&gt;not_found = 'No Houses found';
    $labels-&gt;not_found_in_trash = 'No Houses found in Trash';
    $labels-&gt;all_items = 'All Houses';
    $labels-&gt;menu_name = 'Houses';
    $labels-&gt;name_admin_bar = 'Houses';

    // print_r($labels);
}
 
add_action( 'admin_menu', 'dev_edit_admin_menus' );
add_action( 'init', 'dev_change_post_object' );</pre><p>You can use the php 
			<span id="urvanov-syntax-highlighter-69d4ca0d82102756735450" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">print_r</span></span></span> function to print all the array, just in case you will need to change some other value.</p>
<p>After I updated my child-theme 
			<span id="urvanov-syntax-highlighter-69d4ca0d82105992894748" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-t">function</span><span class="crayon-h"> </span><span class="crayon-sy">.</span><span class="crayon-v">php</span></span></span> , the standard WordPress <em><strong>post type</strong></em> changed to my custom <em><strong>house type. </strong></em>Note that if you do not have a child theme, you can use your theme main function php or just create a simple plugin. There are lots of advantages saving all your modification in your own plugin. One is that you youre changes will persist while changing the theme. On the other hand you can easily migrate your changes to a different blog or website. But this is just another subject.</p>
<p>So let&#8217;s continue customizing the new transformed <strong>post type</strong>. Now it is called <strong>Houses </strong>and it has to be reflected in the fields structure. For this I have installed a plugin called <a href="https://wordpress.org/plugins/advanced-custom-fields/" target="_blank">Advanced Custom Fields</a> from the free WordPress repo.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-978 alignnone" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/advanced-custom-fields-wordpress-plugin.png?resize=611%2C72&#038;ssl=1" alt="advanced custom fields wordpress plugin" width="611" height="72" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/advanced-custom-fields-wordpress-plugin.png?w=611&amp;ssl=1 611w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/advanced-custom-fields-wordpress-plugin.png?resize=300%2C35&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p><small>Please note that I am not related with the author of this plugin in any way</small></p>
<p>You have a large variety of field types you can create like you can see above. Just choose the one you need and follow the on-screen instruction.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-981 alignnone" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wordpress-custom-fields-type.png?resize=834%2C442&#038;ssl=1" alt="wordpress custom fields type" width="834" height="442" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wordpress-custom-fields-type.png?w=834&amp;ssl=1 834w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wordpress-custom-fields-type.png?resize=300%2C159&amp;ssl=1 300w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wordpress-custom-fields-type.png?resize=768%2C407&amp;ssl=1 768w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>Another cute feature that you have is the conditional logic. Used well this is a really powerful tool for creating dynamic fields on backend.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-982" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wordpress-custom-fields-condicional-logic.png?resize=605%2C120&#038;ssl=1" alt="wordpress custom fields condicional logic" width="605" height="120" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wordpress-custom-fields-condicional-logic.png?w=605&amp;ssl=1 605w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wordpress-custom-fields-condicional-logic.png?resize=300%2C60&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>So I have created the fields set that I needed and assign them to my newly created post type. Remember that the new House is still a post type. So I will be assigning this to my &#8220;posts&#8221;.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-979 alignnone" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/house-custom-type-add-new-fields.png?resize=711%2C371&#038;ssl=1" alt="house custom type add new fields" width="711" height="371" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/house-custom-type-add-new-fields.png?w=711&amp;ssl=1 711w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/house-custom-type-add-new-fields.png?resize=300%2C157&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>Great!!! Now I have my posts called house and have a new set of custom fields assigned to them. But wold like to replace the main editor with my own customized one.</p>
<p><del>So here is how I do it in my child theme function.php.</del></p><pre class="urvanov-syntax-highlighter-plain-tag">/*
 * Remove standard WYSIWYG editor from post page
 */

function init_remove_wp_main_editor(){
    $post_type = 'post'; 
    remove_post_type_support( $post_type, 'editor');
}

add_action('init', 'init_remove_wp_main_editor',100);</pre><p><em><strong>Later edit:</strong> </em>I have realized that the plugin has an option to hide fields that you do not want to be displayed on the edit post screen. So you can use that instead to hide the main editor or any other metabox you don&#8217;t want there.</p>
<p>Later you will have to retrieve all this field values on your theme&#8217;s front-end. But I&#8217;m not there yet. I will write a tutorial about this at a later time.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/wordpress-renamechange-post-name-to-a-different-post-type/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">931</post-id>	</item>
		<item>
		<title>The easy way to migrate WordPress using search and replace database</title>
		<link>https://tutorialspage.com/the-easy-way-to-migrate-wordpress-using-search-and-replace-serialized-database-entries/</link>
					<comments>https://tutorialspage.com/the-easy-way-to-migrate-wordpress-using-search-and-replace-serialized-database-entries/#comments</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Wed, 03 Feb 2016 15:36:02 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=955</guid>

					<description><![CDATA[So you want to migrate a WordPress database and you came into the problem that when you load the new installation directory you are being redirected to the old domain. You probably tried to manually replace in your PhpMyAdmin in the [crayon-69d4ca0d82244208425527-i/]  table the two entries that normally exist, but still no success. Maybe your website &#8230; <a href="https://tutorialspage.com/the-easy-way-to-migrate-wordpress-using-search-and-replace-serialized-database-entries/" class="more-link">Continue reading<span class="screen-reader-text"> "The easy way to migrate WordPress using search and replace database"</span></a>]]></description>
										<content:encoded><![CDATA[<p>So you want to <strong>migrate a WordPress database</strong> and you came into the problem that when you load the new installation directory you are being redirected to the old domain. You probably tried to manually replace in your PhpMyAdmin in the 
			<span id="urvanov-syntax-highlighter-69d4ca0d82244208425527" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-i">wp_options</span></span></span>  table the two entries that normally exist, but still no success. Maybe your website is loading but there are lots of errors in there.</p>
<p>This is because WordPress and lots of plugins store data and full URI in the database using wp_serialize function. Here is a little example about what I am talking about:</p><pre class="urvanov-syntax-highlighter-plain-tag">a:6:s:4:"role";s:5:"admin";s:17:"includes_globally";s:2:"on";s:18:"pages_for_includes";s:0:"";s:12:"js_to_footer";s:2:"on";s:15:"show_dev_export";s:3:"off";s:11:"enable_logs";s:3:"off";}</pre><p>If you just do a search and replace you will break all this fields and data can not be recovered.</p>
<p><span id="more-955"></span></p>
<p>WordPress itself in his Codex Archive about <a href="https://codex.wordpress.org/Moving_WordPress" target="_blank">moving WordPress installation</a> files and database recommends that you manually change the URL in the WordPress Control backend.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-958" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/change-url-in-wordpress-backend.png?resize=665%2C322&#038;ssl=1" alt="change url in wordpress backend" width="665" height="322" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/change-url-in-wordpress-backend.png?w=665&amp;ssl=1 665w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/change-url-in-wordpress-backend.png?resize=300%2C145&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>Doing this, will give you a 404 error page on the old domain, but after you move the files and database on the new server, your WordPress installation should work.</p>
<p>Please note that this process leaves you with lots of database entries containing the old domain URL. Entries like posts, data stored by themes and plugins will not be modified. On the other hand you can do a search and replace on your entire database to change the URLs, but this can cause major issues with serialized data because lots of themes plugins and widgets store values along with their length. This can be a big headache.</p>
<p>I am sure there are lots of tools out there, but today I will be talking about this <a href="https://interconnectit.com/products/search-and-replace-for-wordpress-databases/" target="_blank">PHP Search/Replace tool</a>. Note that this tool is not specially designed for WordPress migration, but for any database search and replace process. It works great with WordPress installation and like you can see it has a very friendly interface. After you finish searching and replacing the database you can use the build in cleanup process or delete the files manually.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-957 alignnone" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wodpress-search-and-replace-database.png?resize=673%2C611&#038;ssl=1" alt="wodpress search and replace database" width="673" height="611" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wodpress-search-and-replace-database.png?w=673&amp;ssl=1 673w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/wodpress-search-and-replace-database.png?resize=300%2C272&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>Please note that I am not related in any way with this guys. I am just happy to use their tool and post about it.</p>
<p>To run the search/replace script you will have to download it and place a copy on your website root folder. So your files will be something like this:</p><pre class="urvanov-syntax-highlighter-plain-tag">/your-custom-folder-for-search-replace-script
/wp-admin
/wp-content
/wp-includes</pre><p>It is very important to place the script in his own folder because when it finishes the process it will attempt (give you the option of course) to delete himself. This will delete all files on the same level so if you place all the files directly on the root you will end up deleting all WP installation files. If you do not understand this just ask a geek for a little advice.</p>
<p>Remember that if you had any kind of permalinks rules it is very possible that they will not work properly after the WP migration. So you must disable 
			<span id="urvanov-syntax-highlighter-69d4ca0d82250671888389" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-sy">.</span><span class="crayon-v">htaccess</span></span></span>  and reconfigure permalinks.</p>
<p>Resetting the permalinks is quite easy and can be done in two ways:</p>
<ul>
<li>The first method is done in the WordPress dashboard. Just go to your WordPress dashboard, click on <em>Settings</em> and go to<em> Permalinks.</em></li>
</ul>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-959" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/reset-wordpress-permalinks.png?resize=628%2C507&#038;ssl=1" alt="reset wordpress permalinks" width="628" height="507" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/reset-wordpress-permalinks.png?w=628&amp;ssl=1 628w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/02/reset-wordpress-permalinks.png?resize=300%2C242&amp;ssl=1 300w" sizes="auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /></p>
<p>Just click <em>Save Settings </em>and you should be good to go. If this does not work try to change to a different option, save and then change back to your desired permalink structure. This will force WordPress to rewrite the 
			<span id="urvanov-syntax-highlighter-69d4ca0d82254989644349" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-sy">.</span><span class="crayon-v">htaccess</span></span></span>  file.</p>
<ul>
<li>The second option is to manually edit the database. You will have to search your database 
			<span id="urvanov-syntax-highlighter-69d4ca0d82257208650377" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">wp_options</span></span></span> table for a special entry called 
			<span id="urvanov-syntax-highlighter-69d4ca0d8225a410228959" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">permalink_structure</span></span></span> . After you found it just edit it there.</li>
</ul>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-full wp-image-967 alignnone" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/03/manualy-edit-permalink-for-wordpress.png?resize=590%2C76&#038;ssl=1" alt="manualy edit permalink for wordpress" width="590" height="76" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/03/manualy-edit-permalink-for-wordpress.png?w=590&amp;ssl=1 590w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2016/03/manualy-edit-permalink-for-wordpress.png?resize=300%2C39&amp;ssl=1 300w" sizes="auto, (max-width: 590px) 85vw, 590px" /></p>
<p>Note that if you edit your settings via database or even if you are using the dashboard but WordPress does not have permission to write on file. You will have to manually edit your 
			<span id="urvanov-syntax-highlighter-69d4ca0d8225d574069932" class="urvanov-syntax-highlighter-syntax urvanov-syntax-highlighter-syntax-inline  crayon-theme-monokai crayon-theme-monokai-inline urvanov-syntax-highlighter-font-courier-new" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important;"><span class="crayon-pre urvanov-syntax-highlighter-code" style="font-size: 12px !important; line-height: 25px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-sy">.</span><span class="crayon-v">htaccess</span></span></span></p><pre class="urvanov-syntax-highlighter-plain-tag"># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;

# END WordPress</pre><p>If all this did not make your site to work properly, try to do a <a href="https://www.google.es/webhp?sourceid=chrome-instant&amp;rlz=1C1CHMO_esES665ES665&amp;ion=1&amp;espv=2&amp;ie=UTF-8#q=force%20refresh" target="_blank">force refresh</a>, clear cache or just use a different browser <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/the-easy-way-to-migrate-wordpress-using-search-and-replace-serialized-database-entries/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">955</post-id>	</item>
	</channel>
</rss>
