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.