<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Code on sugar, spice, &amp;terminal? nice</title>
    <link>https://terminal.space/tag/code/</link>
    <description>Recent content in Code on sugar, spice, &amp;terminal? nice</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 11 Mar 2021 00:18:18 +0000</lastBuildDate>
    <atom:link href="https://terminal.space/tag/code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Wordpress feature hacking</title>
      <link>https://terminal.space/tech/wordpress-feature-hacking/</link>
      <pubDate>Thu, 11 Mar 2021 00:18:18 +0000</pubDate>
      <guid>https://terminal.space/tech/wordpress-feature-hacking/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m using &lt;a href=&#34;https://www.kokoanalytics.com/&#34;&gt;Koko analytics&lt;/a&gt; on my site to generally see if it&amp;rsquo;s getting traffic (it&amp;rsquo;s not :D). One thing I wanted to add was a site counter as a throwback to my original website which tracked such things. The data is clearly there since Koko can display the visitors over time:&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://terminal.space/tech/wordpress-feature-hacking/images/Screen-Shot-2021-03-10-at-3.51.14-PM.png&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Okay, so let&amp;rsquo;s get started. Luckily, after cloning the repo, I found an existing &lt;a href=&#34;https://github.com/AnilRedshift/koko-analytics/blob/site_counter/src/class-shortcode-most-viewed-posts.php&#34;&gt;file which generates a shortcode&lt;/a&gt;. I started there &amp;amp; copy/paste/changed the filename. I didn&amp;rsquo;t know how to get the data I wanted, but I just wanted the file to show up. I ended up searching for &lt;code&gt;Shortcode_Most_Viewed_Posts&lt;/code&gt; to see how it gets used, and I found the following snippet:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
