<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments for Krasen Slavov	</title>
	<atom:link href="https://krasenslavov.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://krasenslavov.com/</link>
	<description>WordPress Plugins, Themes and Writings</description>
	<lastBuildDate>Wed, 03 Dec 2025 04:09:51 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		Comment on Add Sub Domain on Kinsta by Krasen Slavov		</title>
		<link>https://krasenslavov.com/how-to-add-sub-domain-on-kinsta/#comment-9385</link>

		<dc:creator><![CDATA[Krasen Slavov]]></dc:creator>
		<pubDate>Mon, 21 Oct 2024 04:07:40 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=20#comment-9385</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krasenslavov.com/how-to-add-sub-domain-on-kinsta/#comment-9384&quot;&gt;Aram&lt;/a&gt;.

Yes, I recently tried to do that again and they said the same, which is a shame.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krasenslavov.com/how-to-add-sub-domain-on-kinsta/#comment-9384">Aram</a>.</p>
<p>Yes, I recently tried to do that again and they said the same, which is a shame.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Setting Up and Compiling WordPress React JS for the Block Editor with Gulp and NPM by Krasen Slavov		</title>
		<link>https://krasenslavov.com/setting-up-and-compiling-wordpress-react-js-for-the-block-editor-with-gulp-and-npm/#comment-9392</link>

		<dc:creator><![CDATA[Krasen Slavov]]></dc:creator>
		<pubDate>Mon, 21 Oct 2024 04:05:32 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=1410#comment-9392</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krasenslavov.com/setting-up-and-compiling-wordpress-react-js-for-the-block-editor-with-gulp-and-npm/#comment-9391&quot;&gt;Stefan Smiljkovic&lt;/a&gt;.

Webpack is a Node-based application, and to install and run it you need both Node and NPM. Not only that, but for Webpack to do anything meaningful, it requires &quot;loaders&quot; that are Node modules which should be installed with NPM as well.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krasenslavov.com/setting-up-and-compiling-wordpress-react-js-for-the-block-editor-with-gulp-and-npm/#comment-9391">Stefan Smiljkovic</a>.</p>
<p>Webpack is a Node-based application, and to install and run it you need both Node and NPM. Not only that, but for Webpack to do anything meaningful, it requires &#8220;loaders&#8221; that are Node modules which should be installed with NPM as well.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Menu Management in WordPress with Increased Search Results by Krasen Slavov		</title>
		<link>https://krasenslavov.com/menu-management-in-wordpress-with-increased-search-results/#comment-9388</link>

		<dc:creator><![CDATA[Krasen Slavov]]></dc:creator>
		<pubDate>Mon, 21 Oct 2024 04:03:54 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=971#comment-9388</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krasenslavov.com/menu-management-in-wordpress-with-increased-search-results/#comment-9387&quot;&gt;Joanna&lt;/a&gt;.

You are welcome.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krasenslavov.com/menu-management-in-wordpress-with-increased-search-results/#comment-9387">Joanna</a>.</p>
<p>You are welcome.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Menu Management in WordPress with Increased Search Results by Joanna		</title>
		<link>https://krasenslavov.com/menu-management-in-wordpress-with-increased-search-results/#comment-9387</link>

		<dc:creator><![CDATA[Joanna]]></dc:creator>
		<pubDate>Mon, 23 Sep 2024 13:23:38 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=971#comment-9387</guid>

					<description><![CDATA[Thank You for this post !!!]]></description>
			<content:encoded><![CDATA[<p>Thank You for this post !!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Setting Up and Compiling WordPress React JS for the Block Editor with Gulp and NPM by Stefan Smiljkovic		</title>
		<link>https://krasenslavov.com/setting-up-and-compiling-wordpress-react-js-for-the-block-editor-with-gulp-and-npm/#comment-9391</link>

		<dc:creator><![CDATA[Stefan Smiljkovic]]></dc:creator>
		<pubDate>Tue, 03 Sep 2024 13:08:25 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=1410#comment-9391</guid>

					<description><![CDATA[Is there a specific reason you chose Gulp over Webpack for this setup? I&#039;m considering a similar approach for my project and wondering about the pros and cons.]]></description>
			<content:encoded><![CDATA[<p>Is there a specific reason you chose Gulp over Webpack for this setup? I&#8217;m considering a similar approach for my project and wondering about the pros and cons.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Add Sub Domain on Kinsta by Aram		</title>
		<link>https://krasenslavov.com/how-to-add-sub-domain-on-kinsta/#comment-9384</link>

		<dc:creator><![CDATA[Aram]]></dc:creator>
		<pubDate>Tue, 05 Mar 2024 03:45:52 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=20#comment-9384</guid>

					<description><![CDATA[Kinsta no longer allows this :(]]></description>
			<content:encoded><![CDATA[<p>Kinsta no longer allows this 🙁</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Verifying Existing Attachments in the Database by Krasen Slavov		</title>
		<link>https://krasenslavov.com/verifying-existing-attachments-in-the-database/#comment-9390</link>

		<dc:creator><![CDATA[Krasen Slavov]]></dc:creator>
		<pubDate>Tue, 20 Feb 2024 10:07:19 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=1227#comment-9390</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krasenslavov.com/verifying-existing-attachments-in-the-database/#comment-9389&quot;&gt;Vladan&lt;/a&gt;.

&lt;strong&gt;Context:&lt;/strong&gt; When you use &lt;code&gt;wp_insert_attachment&lt;/code&gt; with a relative file path, WordPress internally converts this relative path into an absolute path and stores it in the &lt;code&gt;_wp_attached_file&lt;/code&gt; post meta field. By storing the absolute path in the &lt;code&gt;_wp_attached_file&lt;/code&gt; meta field, WordPress ensures that it can accurately locate and access the attachment file when needed. 

So, the main difference is in the SQL query:

&lt;code&gt;attachment_url_to_postid()&lt;/code&gt;:

&lt;code&gt;$sql = $wpdb-&#062;prepare( &quot;SELECT post_id, meta_value FROM $wpdb-&#062;postmeta WHERE meta_key = &#039;_wp_attached_file&#039; AND meta_value = %s&quot;, $path );&lt;/code&gt;

custom function:

&lt;code&gt;$sql = $wpdb-&#062;prepare( &quot;SELECT ID FROM {$wpdb-&#062;posts} WHERE guid = %s&quot;, $url );&lt;/code&gt;

Then the &lt;code&gt;_wp_attached_file&lt;/code&gt; has the full path and relative path for this we need to check the posts table where we have the guid.

So, to conclude the &lt;code&gt;attachment_url_to_postid()&lt;/code&gt; has better efficiency &#038; ease of use, but it doesn&#039;t cover 100% of the cases so it&#039;s reliability is less that the custom function.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krasenslavov.com/verifying-existing-attachments-in-the-database/#comment-9389">Vladan</a>.</p>
<p><strong>Context:</strong> When you use <code>wp_insert_attachment</code> with a relative file path, WordPress internally converts this relative path into an absolute path and stores it in the <code>_wp_attached_file</code> post meta field. By storing the absolute path in the <code>_wp_attached_file</code> meta field, WordPress ensures that it can accurately locate and access the attachment file when needed. </p>
<p>So, the main difference is in the SQL query:</p>
<p><code>attachment_url_to_postid()</code>:</p>
<p><code>$sql = $wpdb-&gt;prepare( "SELECT post_id, meta_value FROM $wpdb-&gt;postmeta WHERE meta_key = '_wp_attached_file' AND meta_value = %s", $path );</code></p>
<p>custom function:</p>
<p><code>$sql = $wpdb-&gt;prepare( "SELECT ID FROM {$wpdb-&gt;posts} WHERE guid = %s", $url );</code></p>
<p>Then the <code>_wp_attached_file</code> has the full path and relative path for this we need to check the posts table where we have the guid.</p>
<p>So, to conclude the <code>attachment_url_to_postid()</code> has better efficiency &amp; ease of use, but it doesn&#8217;t cover 100% of the cases so it&#8217;s reliability is less that the custom function.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Verifying Existing Attachments in the Database by Vladan		</title>
		<link>https://krasenslavov.com/verifying-existing-attachments-in-the-database/#comment-9389</link>

		<dc:creator><![CDATA[Vladan]]></dc:creator>
		<pubDate>Wed, 14 Feb 2024 02:27:47 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=1227#comment-9389</guid>

					<description><![CDATA[What&#039;s the difference between this approach and the built-in function `attachment_url_to_postid()`?

I also think that `guid` does not have to be a URL at all. I&#039;m not sure about this.]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s the difference between this approach and the built-in function `attachment_url_to_postid()`?</p>
<p>I also think that `guid` does not have to be a URL at all. I&#8217;m not sure about this.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on 2 Methods to Add Any SVG to Gutenberg by Bruno		</title>
		<link>https://krasenslavov.com/2-methods-to-quickly-add-any-svg-to-gutenberg-editor/#comment-9386</link>

		<dc:creator><![CDATA[Bruno]]></dc:creator>
		<pubDate>Sat, 18 Jun 2022 05:01:05 +0000</pubDate>
		<guid isPermaLink="false">https://krasenslavov.com/?p=38#comment-9386</guid>

					<description><![CDATA[Fantastic tutorial, but you might want to modify your instructions for saving the link on:

copy the Ready for CSS content.

you need to isolate the URL , not copy the whole thing, only what is between &quot; and &quot; 

4)	Select everything after [background-image: url(&quot;] go from &quot; to &quot;, url starts like this: data:image/svg+xml,%3Csvg xmlns=&#039;http://www.w3.org]]></description>
			<content:encoded><![CDATA[<p>Fantastic tutorial, but you might want to modify your instructions for saving the link on:</p>
<p>copy the Ready for CSS content.</p>
<p>you need to isolate the URL , not copy the whole thing, only what is between &#8221; and &#8221; </p>
<p>4)	Select everything after [background-image: url(&#8220;] go from &#8221; to &#8220;, url starts like this: data:image/svg+xml,%3Csvg xmlns=&#8217;http://www.w3.org</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
