<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
    <title>Josh Stauffer</title>
    <link href="https://pub.joshstauffer.com/feed.xml" rel="self" />
    <link href="https://pub.joshstauffer.com" />
    <updated>2026-11-25T22:09:52-06:00</updated>
    <author>
        <name>Josh</name>
    </author>
    <id>https://pub.joshstauffer.com</id>

    <entry>
        <title>Publii is a WordPress alternative</title>
        <author>
            <name>Josh</name>
        </author>
        <link href="https://pub.joshstauffer.com/publii-is-a-wordpress-alternative/"/>
        <id>https://pub.joshstauffer.com/publii-is-a-wordpress-alternative/</id>
        <media:content url="https://pub.joshstauffer.com/media/posts/6/pexels-yuraforrat-8643566-2.jpg" medium="image" />

        <updated>2026-11-25T21:54:06-06:00</updated>
            <summary type="html">
                <![CDATA[
                        <img src="https://pub.joshstauffer.com/media/posts/6/pexels-yuraforrat-8643566-2.jpg" alt="" />
                    I don't have to have my own linux server. I can write this on my desktop and then publish it to github. What a joy.
                ]]>
            </summary>
        <content type="html">
            <![CDATA[
                    <p><img src="https://pub.joshstauffer.com/media/posts/6/pexels-yuraforrat-8643566-2.jpg" class="type:primaryImage" alt="" /></p>
                
  <p>
    I don't have to have my own linux server. I can write this on my desktop and then publish it to github. What a joy.
  </p>

    <figure class="post__image post__image--center">
      <img loading="lazy" src="https://pub.joshstauffer.com/media/posts/6/pexels-yuraforrat-8643566.jpg" height="5760" width="3840" alt=""  sizes="(min-width: 920px) 703px, (min-width: 700px) calc(82vw - 35px), calc(100vw - 81px)" srcset="https://pub.joshstauffer.com/media/posts/6/responsive/pexels-yuraforrat-8643566-xs.jpg 300w ,https://pub.joshstauffer.com/media/posts/6/responsive/pexels-yuraforrat-8643566-sm.jpg 480w ,https://pub.joshstauffer.com/media/posts/6/responsive/pexels-yuraforrat-8643566-md.jpg 768w ,https://pub.joshstauffer.com/media/posts/6/responsive/pexels-yuraforrat-8643566-lg.jpg 1024w">
      <figcaption>I did not take this photo</figcaption>
    </figure>
            ]]>
        </content>
    </entry>
    <entry>
        <title>I am exploring WordPress alternatives</title>
        <author>
            <name>Josh</name>
        </author>
        <link href="https://pub.joshstauffer.com/i-am-exploring-wordpress-alternatives-22/"/>
        <id>https://pub.joshstauffer.com/i-am-exploring-wordpress-alternatives-22/</id>

        <updated>2026-11-25T11:39:24-06:00</updated>
            <summary type="html">
                <![CDATA[
                    Do things wellDo things oftenBuildCreate If you don't do it, who will? Josh Stauffer SELECT * FROM posts WHERE id = 23; That is all&hellip;
                ]]>
            </summary>
        <content type="html">
            <![CDATA[
                
  <ul>
    <li>Do things well</li><li>Do things often</li><li>Build</li><li>Create</li>
  </ul>

    <figure class="blockquote">
      <blockquote>If you don't do it, who will?</blockquote>
      <figcaption>Josh Stauffer</figcaption>
    </figure>
<pre class="line-numbers  language-none"><code>SELECT * FROM posts WHERE id = 23; 
</code></pre>
<hr class="separator separator--dots" />

  <p>
    That is all for now folks.
  </p>
            ]]>
        </content>
    </entry>
    <entry>
        <title>Sum Some Nums</title>
        <author>
            <name>Josh</name>
        </author>
        <link href="https://pub.joshstauffer.com/sum-some-nums/"/>
        <id>https://pub.joshstauffer.com/sum-some-nums/</id>
            <category term="Tech"/>

        <updated>2021-03-13T12:02:00-06:00</updated>
            <summary type="html">
                <![CDATA[
                    Adding a list of numbers is pretty simple. And so is this tool. It sums a list of numbers. And averages them too. That’s it.
                ]]>
            </summary>
        <content type="html">
            <![CDATA[
                
  <p>
    Adding a list of numbers is pretty simple. And so is this tool. It sums a list of numbers. And averages them too. That’s it.
  </p>

  <p>
    The design is <a href="https://www.google.com/search?q=brutalist+design" target="_blank">brutalist</a> with a mix of emojis. I think it is fun.<br><br>
  </p>

  <p>
    <em><strong>Why?</strong></em> Covid has caused my family to play a lot of Monopoly this past year. We never play to the end. We stop after X hours and see who has the most money. This tool will help us count the monies.
  </p>

  <p>
    <a href="https://www.joshstauffer.com/sumsomenums/" target="_blank">Sum Some Nums</a>
  </p>

    <figure class="post__image post__image--center">
      <a href="https://www.joshstauffer.com/sumsomenums/" target="_blank">
        <img loading="lazy" src="https://pub.joshstauffer.com/media/posts/3/sumsomenums.png" height="978" width="750" alt=""  sizes="(min-width: 920px) 703px, (min-width: 700px) calc(82vw - 35px), calc(100vw - 81px)" srcset="https://pub.joshstauffer.com/media/posts/3/responsive/sumsomenums-xs.png 300w ,https://pub.joshstauffer.com/media/posts/3/responsive/sumsomenums-sm.png 480w ,https://pub.joshstauffer.com/media/posts/3/responsive/sumsomenums-md.png 768w ,https://pub.joshstauffer.com/media/posts/3/responsive/sumsomenums-lg.png 1024w">
      </a>
      
    </figure>
            ]]>
        </content>
    </entry>
    <entry>
        <title>WordPress: Scheduled Tasks with WP-Cron</title>
        <author>
            <name>Josh</name>
        </author>
        <link href="https://pub.joshstauffer.com/wordpress-scheduled-tasks-with-wp-cron/"/>
        <id>https://pub.joshstauffer.com/wordpress-scheduled-tasks-with-wp-cron/</id>

        <updated>2021-02-27T13:31:00-06:00</updated>
            <summary type="html">
                <![CDATA[
                    function js_cron_exec() { // Scheduled task code here } add_action( 'js_cron_hook', 'js_cron_exec' ); // Schedule the task if not already scheduled if ( ! wp_next_scheduled(&hellip;
                ]]>
            </summary>
        <content type="html">
            <![CDATA[
                <pre class="line-numbers  language-none"><code>function js_cron_exec() {
    // Scheduled task code here
}
add_action( 'js_cron_hook', 'js_cron_exec' );
 
// Schedule the task if not already scheduled
if ( ! wp_next_scheduled( 'js_cron_hook' ) ) {
    wp_schedule_event( time(), 'daily', 'js_cron_hook' );
}
 
// Remove the scheduled task
// $timestamp = wp_next_scheduled( 'js_cron_hook' );
// wp_unschedule_event( $timestamp, 'js_cron_hook' );</code></pre>

  <p>
    Few things to mention about the code:
  </p>

  <ol>
    <li>add_action() will create your hook.</li><li>The first parameter of add_action() is the name of the hook you are creating. Name it as you please and use a name prefix. The scheduled event will call this.<br></li><li>The second parameter of add_action() is the name of the function to call. Again, name it whatever. Use a name prefix. The hook will call this.<br></li><li>wp_schedule_event() will schedule the event. The second parameter can accept: ‘hourly’, ‘twicedaily’, ‘daily’, ‘weekly’.<br></li>
  </ol>

  <p>
    <a href="https://developer.wordpress.org/plugins/cron/" target="_blank">WP-Cron</a> is how WordPress handles scheduling time-based tasks in WordPress, such as checking for updates and publishing scheduled posts.
  </p>

  <p>
    With WP-Cron, all scheduled tasks are put into a queue. On each page load, it works by checking a list of scheduled tasks to see what needs to be run. Any tasks that need to be run are then executed.
  </p>

  <p>
    So while you can’t be 100% sure when your task will run, you can be 100% sure that it will run eventually. Put another way, if your task is scheduled to run at 2:00PM but your next page load is not until 5:00PM, the task with run at 5:00PM.<br>
  </p>
            ]]>
        </content>
    </entry>
    <entry>
        <title>Made Alive</title>
        <author>
            <name>Josh</name>
        </author>
        <link href="https://pub.joshstauffer.com/made-alive/"/>
        <id>https://pub.joshstauffer.com/made-alive/</id>

        <updated>2013-05-25T13:50:00-05:00</updated>
            <summary type="html">
                <![CDATA[
                    If ever I forget my true identity, show me who I am and help me to believe.
                ]]>
            </summary>
        <content type="html">
            <![CDATA[
                
    <blockquote class="blockquote">
      If ever I forget my true identity, show me who I am and help me to believe.<br>
    </blockquote>
<div><div class="post__iframe"><iframe loading="lazy" width="988" height="556" src="https://www.youtube.com/embed/tWQ4thTS2kA" title="Citizens &amp; Saints - Made Alive" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div></div>

  <p>
    
  </p>
            ]]>
        </content>
    </entry>
</feed>
