2 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Located in United Kingdom
limavadyhigh says

Hi all,

I have a WordPress theme modified from Theme Forest that needs some PHP /CSS tweaks. I use this theme as part of my works website (a secondary school) to great effect. Over the past month I’ve noticed some elements I’d like changed/modified however the level of coding is way above my head. I’m hoping – with some assistance – you friendly folk may be able to guide me on how to get things working the way I’d like but also, more importantly, help me learn more about WP.

1) At present we have a static background. I’d love to get a random background instead, picking images up from a specific folder, to change the look of the site every time it is loaded or every day. At present the site background is controlled by CSS . Is there any easy way to introduce a folder of background images that the CSS could randomly select every-time the site loads?

2) We have 1 headline post showing, which is our main news item. Unfortunately it’s the most recent post. This causes problems because if I add other less important ‘news’, the last updated piece would take the headlines place. Ideally I’d like to tag certain posts with Headline and get only those to display in the Headlines place (kind of similar to the Featured news area we have). Below you can see some of the code which calls the Featured post. Is it easy to add in the command to only display certain tagged posts?

<?php /* show posts tagged featured */ $tz_featured_posts = new WP_Query(); $tz_featured_posts?>query(‘tag=featured&posts_per_page=’ . $tz_featured_number . ’’); ?> <?php while ($tz_featured_posts?>have_posts()) : $tz_featured_posts->the_post(); ?>

3) On our homepage there are 3 areas for news to appear, the Headline area, the Featured news area and the Recent news area. On numerous occasions the recent news area gets clogged with posts already displayed in the Headline or Featured news space. I’d like recent news to exclude certain categories – or tagged posts – so this content isn’t duplicated. The recent news is being called like so <?php include( TEMPLATEPATH . ’/includes/recent-posts.php’ ); ?>. Within that recent-posts page I can’t seem to find an option to exclude certain categories or post tags. Would anybody know how to add this?

Any assistance would be much appreciated. Thanks in advance! Chris

15 posts
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+6 more
awesem says

Hi Chris,

I just came across your post while I was browsing the forum. Did you manage to resolve your three questions in the end?

Please contact us via our profile page if you still require support:


Kind regards


2 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Located in United Kingdom
limavadyhigh says

Unfortunately not Olaf. I don’t suppose you’d be able to help me out? It would be great to get things working the way I want them too.


Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes