
<?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>Evo Web Dev</title>
	<atom:link href="https://evowebdev.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://evowebdev.com</link>
	<description>When your website means business.</description>
	<lastBuildDate>Fri, 16 Oct 2026 18:55:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://evowebdev.com/wp-content/uploads/cropped-evoICON-32x32.png</url>
	<title>Evo Web Dev</title>
	<link>https://evowebdev.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Hiding Specific Pages and Posts</title>
		<link>https://evowebdev.com/snippet/hiding-specific-pages-and-posts/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Fri, 16 Oct 2026 18:55:10 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147761</guid>

					<description><![CDATA[Add to theme functions file]]></description>
										<content:encoded><![CDATA[<p>Add to theme functions file:</p>
<pre>function exclude_specific_posts_from_search($query) {
  // Check if it's a front-end search query (not admin)
  if ($query->is_search && !is_admin()) {
    // Replace 123, 456 with your page/post IDs to exclude
    $excluded_ids = array(123, 456); 
    $query->set('post__not_in', $excluded_ids);
  }
}
add_action('pre_get_posts', 'exclude_specific_posts_from_search');</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Turn off AI features in WP 7</title>
		<link>https://evowebdev.com/snippet/turn-off-ai-features-in-wp-7/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Mon, 25 May 2026 13:14:25 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147740</guid>

					<description><![CDATA[Fortunately, this is fairly easy to do by adding a line to the wp-config.php file, or if you prefer, with the plugin Turn Off AI Features. <small>[...]</small>]]></description>
										<content:encoded><![CDATA[<p>Fortunately, this is fairly easy to do by adding a line to the <code>wp-config.php</code> file, or if you prefer, with the plugin <a href="https://wordpress.org/plugins/turn-off-ai-features/" target="_blank" rel="noopener">Turn Off AI Features</a>.</p>
<p>Add to wp-config:</p>
<code>define( 'WP_AI_SUPPORT', false );</code>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Disabling XML-RPC in WordPress</title>
		<link>https://evowebdev.com/snippet/disabling-xml-rpc-in-wordpress/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Sun, 17 May 2026 18:29:39 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147739</guid>

					<description><![CDATA[Add the following filter to the theme’s functions.php file to disable XML-RPC at the application layer: // Disable XML-RPC add_filter( 'xmlrpc_enabled', '__return_false' ); This method does not prevent <small>[...]</small>]]></description>
										<content:encoded><![CDATA[<p>Add the following filter to the theme’s <code>functions.php</code> file to disable XML-RPC at the application layer:</p>
<pre><code>// Disable XML-RPC
add_filter( 'xmlrpc_enabled', '__return_false' );</code></pre>
<p>This method does not prevent HTTP requests to <code>xmlrpc.php</code> from reaching the server. For environments where XML-RPC is not required, a more robust mitigation is to block access at the web server level.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Loading acf/init properly</title>
		<link>https://evowebdev.com/snippet/loading-acf-init-properly/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Fri, 06 Feb 2026 01:39:05 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147722</guid>

					<description><![CDATA[This code wraps &#8216;acf_add_options_page&#8217; code (usually in the theme functions file): add_action('acf/init', 'my_acf_init'); function my_acf_init() { // Get ACF version. $version = acf_get_setting('version'); // add options <small>[...]</small>]]></description>
										<content:encoded><![CDATA[<p>This code wraps &#8216;acf_add_options_page&#8217; code (usually in the theme functions file):</p>
<pre>add_action('acf/init', 'my_acf_init'); 
function my_acf_init() { 
   // Get ACF version. 
   $version = acf_get_setting('version'); 
   
   // add options page code here

}</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Get SALT Keys</title>
		<link>https://evowebdev.com/snippet/get-salt-keys/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Thu, 05 Feb 2026 20:21:21 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147721</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>FlexBox Layout</title>
		<link>https://evowebdev.com/snippet/flexbox-layout/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Sun, 01 Feb 2026 13:14:04 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147720</guid>

					<description><![CDATA[See the blog post for a downloadable FlexBox demo that I built as the basis for the Evo FlexBox theme.]]></description>
										<content:encoded><![CDATA[<p>See the blog post for a downloadable FlexBox demo that I built as the basis for the Evo FlexBox theme.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Pagination without a plugin</title>
		<link>https://evowebdev.com/snippet/pagination-without-a-plugin/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Wed, 21 Jan 2026 14:26:05 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147712</guid>

					<description><![CDATA[Truthfully, I&#8217;ve relied on WP-PageNavi for pagination for years. I recently tried Simplistic Page Navi, and I like that as well. But if you want to <small>[...]</small>]]></description>
										<content:encoded><![CDATA[<p>Truthfully, I&#8217;ve relied on WP-PageNavi for pagination for years. I recently tried Simplistic Page Navi, and I like that as well. But if you want to roll your own, this snippet will help you out.</p>
<p>Add this to your theme&#8217;s <small><code>functions.php</code></small>, then use <small><code>&lt;?php echo my_pagination(); ?&gt;</code></small> in your template to display pagination.</p>
<pre>/**
 * Numeric pagination via WP core function paginate_links().
 * @link http://codex.wordpress.org/Function_Reference/paginate_links
 * @param array $args
 * @return string HTML for numneric pagination
 */
function my_pagination( $args = array() ) {
    global $wp_query;
    $output = '';
    if ( $wp_query-&gt;max_num_pages &lt;= 1 ) { 
    return; 
    } $pagination_args = array( 'base' =&gt; str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ),
        'total'        =&gt; $wp_query-&gt;max_num_pages,
        'current'      =&gt; max( 1, get_query_var( 'paged' ) ),
        'format'       =&gt; '?paged=%#%',
        'show_all'     =&gt; false,
        'type'         =&gt; 'plain',
        'end_size'     =&gt; 2,
        'mid_size'     =&gt; 1,
        'prev_next'    =&gt; true,
        //'prev_text'    =&gt; __( '« Prev', 'text-domain' ),
        //'next_text'    =&gt; __( 'Next »', 'text-domain' ),
        //'prev_text'    =&gt; __( '‹ Prev', 'text-domain' ),
        //'next_text'    =&gt; __( 'Next ›', 'text-domain' ),
        'prev_text'    =&gt; sprintf( '<i></i> %1$s',
            apply_filters( 'my_pagination_page_numbers_previous_text',
            __( 'Newer Posts', 'text-domain' ) )
        ),
        'next_text'    =&gt; sprintf( '%1$s <i></i>',
            apply_filters( 'my_pagination_page_numbers_next_text',
            __( 'Older Posts', 'text-domain' ) )
        ),
        'add_args'     =&gt; false,
        'add_fragment' =&gt; '',

        // Custom arguments not part of WP core:
        'show_page_position' =&gt; false, // Optionally allows the "Page X of XX" HTML to be displayed.
    );

    $pagination_args = apply_filters( 'my_pagination_args', array_merge( $pagination_args, $args ), $pagination_args );

    $output .= paginate_links( $pagination_args );

    // Optionally, show Page X of XX.
    if ( true == $pagination_args['show_page_position'] &amp;&amp; $wp_query-&gt;max_num_pages &gt; 0 ) {
        $output .= '<span class="page-of-pages">' . sprintf( __( 'Page %1s of %2s', 'text-domain' ), $pagination_args['current'], $wp_query-&gt;max_num_pages ) . '</span>';
    }

    return $output;
}
</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Center content horizontally and vertically in flexbox</title>
		<link>https://evowebdev.com/snippet/center-content-horizontally-and-vertically-in-flexbox/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Tue, 16 Sep 2025 12:36:43 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147704</guid>

					<description><![CDATA[.container { display: flex; flex-wrap: wrap; place-content: center; }]]></description>
										<content:encoded><![CDATA[<pre>.container {
  display: flex;
  flex-wrap: wrap;
  place-content: center;
}</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Add Persistent Text-Resize Button</title>
		<link>https://evowebdev.com/snippet/add-persistent-text-resize-button/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Fri, 11 Apr 2025 17:23:03 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147687</guid>

					<description><![CDATA[Example shows &#8216;bigger&#8217; class added to all paragraphs on a page, but CSS targets specific paragraph types. jQuery toggles the class and also makes the class <small>[...]</small>]]></description>
										<content:encoded><![CDATA[<p>Example shows &#8216;bigger&#8217; class added to all paragraphs on a page, but CSS targets specific paragraph types. jQuery toggles the class and also makes the class persist when a visitor goes to another page.</p>
<p>NOT PERFECT: if you toggle the size down after toggling up, the bigger size still persists. To get back to original size, you have to close the browser tab and reopen the site in a new tab. Should be a matter of setting a cookie to read last setting, so I may update this after I figure that out. In the meantime, a very nice plugin, <a href="https://wordpress.org/plugins/accessibility-font-resizer/" target="_blank" rel="noopener">Accessibility Font Resizer</a>, is fulfilling my immediate need.</p>
<p><strong>HTML</strong></p>
<pre>&lt;button class="textresize" onClick="bigParagraph()"&gt;&amp;plusmn;&lt;/button&gt;</pre>
<p style="margin-top: 1.5em;"><strong>CSS</strong> <em>(example does not include styling for the button)</em></p>
<pre>.post-entry p.bigger,
.excerpt p.bigger { font-size: 1.4rem; line-height:1.8; }
.post-entry .pagepix p.bigger,
p.nav-previous.bigger,
p.nav-next.bigger { font-size:1.2rem; }</pre>
<p style="margin-top: 1.5em;"><strong>JQUERY</strong></p>
<pre>//RESIZE PARAGRAPHS
jQuery(function($) {
	bigParagraph = function () {
  	$('p').toggleClass("bigger") //apply class to all paragraphs
  	sessionStorage.class = "bigger"; //store selection
	}
});
jQuery(function($) { //persist variable on subsequent pages
	$(document).ready(function(){ 
	if(typeof(Storage) !== "undefined") {
	$('p').addClass(sessionStorage.class);
	}
	});
});</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Date/Time Examples</title>
		<link>https://evowebdev.com/snippet/date-time-examples/</link>
		
		<dc:creator><![CDATA[Evo Web Dev]]></dc:creator>
		<pubDate>Wed, 26 Mar 2025 15:29:32 +0000</pubDate>
				<guid isPermaLink="false">https://evowebdev.com/?post_type=snippets&#038;p=147665</guid>

					<description><![CDATA[$today = date('Ymd'); //string $testdate = get_field( 'test_date' ); //string $testerdate = DateTime::createFromFormat( 'Ymd', $testdate ); //convert string to object echo '&#60;p&#62;Today: '.$today.'&#60;/p&#62; //string echo '&#60;p&#62;Test <small>[...]</small>]]></description>
										<content:encoded><![CDATA[<pre>$today = date('Ymd'); //string
<strong>$testdate</strong> = get_field( 'test_date' ); //string
<span style="color: red;">$testerdate</span> = DateTime::createFromFormat( 'Ymd', <strong>$testdate</strong> ); //convert string to object
echo '&lt;p&gt;Today: '.$today.'&lt;/p&gt; //string
echo '&lt;p&gt;Test Date: '.<strong>$testdate</strong>.'&lt;/p&gt; //string
if ($today !== $testdate) { //compare strings
    echo '&lt;p&gt;Success!&lt;/p&gt;
}
echo '&lt;p&gt;Test Date Formatted: '.<span style="color: red;">$testerdate</span>-&gt;format('F j, Y').'&lt;/p&gt;'; //format object 

$dt = new DateTime("now", new DateTimeZone('America/New_York'));
echo '&lt;p&gt;Today: '.$dt-&gt;format('F j, Y; g:i a').'&lt;/p&gt;';</pre>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
