Computer screen with the Giornalismo homepage

Continuing the path toward finish Giornalismo


Another week gone by and another item checked off the list for the Giornalismo theme.

This week I finished off the advertisement feature for the theme, which actually went much easier than I thought it would. After creating the advertisement custom post type last week, I was able to add spots to add advertisements in the header as well as the widgets this week. While querying posts has become more or less second nature for me, making posts show up in a random order, which is necessary since, at this moment, only one advertisement “post” shows up at a time, was a little bit tricky. Tricky, that is, until I discovered the 'orderby' => 'rand' option in the WP_Query, which saved a whole bunch of code writing.

Right now, I’m not going to extend this into possibly making an advertisement shortcode, though shortcodes are on the list, but I will consider it before finishing the first version of the theme. Having more than one ad show in the widget probably won’t come out until after the initial release of the theme.

As for what’s going on next, I’m currently working on the breaking news feature with the breaking news custom post type already done. Now I’m just trying to figure out how to display a post for a certain amount of time, determined by the theme user. Once that’s finished, it shouldn’t be too hard to get it to work.

As for Nuovo, it’s still waiting to be reviewed again, though it’s in the “previously reviewed” lane so hopefully that means it will be reviewed quicker.

Keep Learning with the Small Business Websites Newsletter

There’s a lot to learn when it comes to websites. How do you build a website that’s going to help your business grow? How do you manage a website to help your business grow? What’s the latest website news that you should know about? What are some websites you can look to for inspiration?

The Small Business Websites Newsletter helps you answer each of these questions. The biweekly newsletter will take a deep dive into some website-related topic, like SEO, WordPress, how to plan a website and more, to help you learn more about websites. I’ll also include some website news that you should know about as well as add inspiration I’ve found that might help you. And you’ll even get discounts for various products I offer. And all of this is for free.

So if you want to be better at building or managing your small business website (or any website for that matter), then you’ll want to sign up today!

"*" indicates required fields

GDPR Compliance*
This field is for validation purposes and should be left unchanged.