Since WordPress is php based, in order to use shortcodes on the sidebar or anywhere on the theme, we have to use echo.
<h2><?php echo do_shortcode(‘ catlist categorypage=yes excerpt=yes excerpt_size =255)]’); ?></h2>
This is the shortcodes for catlist to list related posts in the same category on the sidebar for my single.php that I’m designing right now (the right bracket before ‘catlist’ is missing).
- Upgrade WordPress From PHP 7.4 To 8.3 ProblemsSince php 7.4 is end of life, we need to upgrade from 7.4 to 8.3 and our server is with Inmotion Hosting. Every time we upgrade to php 8-8.3, the website shows errors and couldn’t load. After trials and errors and we found 2 plugins that didn’t work. Removed them and everything works fine: Popular Widget and Better WordPress reCapcha. To upgrade php with Inmotion Hosting, go to Cpanel and click on MultiPHPManager – Select the domain and php version then click apply. If everything is good, the blog will load nicely.
- How To Embed HTML In PHPIn WordPress blog, the website default to “index.php” and I want to load an htm file instead. Here’s how I did it. <?php $htmlContent = <<<HTML <!DOCTYPE html> <html> <head> <body> … </body> </html> HTML; echo $htmlContent; ?>
- The Best Light Weight Responsive Themes For WordPressFor a blogger like me, just me writing and managing, I always keep searching for the best, light weight, responsive free themes and modify to my liking. Here are some of the ones I’ve tried and like. All of them must be tested through and for the fastest time to use. All themes without Ads from Google would be fast, but when you put the scripts for Google Ads or Amazon’s ads would slow down the webpages. We had to use the one with these scripts installed. w3cssmain: This one is the most light weight responsive custom theme I’ve created for my blog. Responsive: This one is also the fastest one that’s free and I had to modify for my blog. Sparkling: This one is also fast and responsive. Serenti: This one is also fast and responsive.
- Serenti Theme for Word Pressis a very fast theme and mobile friendly. It’s free. I modified some parts and made it for all my blogs. Normally I have to test with all the speed, , and to make sure it’s the best one out there. I also like the and .
- WP Ocius By Candid ThemesSince my blogs are for personal use, I’ve tried to keep it up and find the best free themes to use, I’ve found Ocius and Fairy from Candid Themes are quite fast and simple. I’ve used gtmetrix and pagespeed to test, if these two are good, then I use them. I don’t use a lot of options for my blogs, a few modifications to customize for my blogs. Since there are google and amazon ads to generate enough money to pay for Inmotionhosting and domains, the speed can never be perfect due to ads scripts, but as long as it’s fast loading, it’s good.
