<div id="header">
<?php
mt_srand((int)date('z'));
$headers=glob(PATH_TO_FILES .'/*.jpg');
$header=mt_rand(0,count($headers)-1 );
?>
<img id="header-image" `src="https://wordpress.stackexchange.com/questions/5232/<?php echo URL_TO_FILES ."https://wordpress.stackexchange.com/".basename($headers[$header]); ?>" alt="header" />
</div>
replace your current header with this. I will of course help you implement this further if you need help. (or if you need the code explained)
Related Posts:
- How to add a new product type on woocommerce product types? [closed]
- Is there a plugin to make attaching images easier?
- Is there a WordPress Event Manager that links with your user database?
- A Simple CRM Plugin for WordPress? [closed]
- where can i add custom script to stop header video from autoplay
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- WooCommerce Checkout page customization [closed]
- Conditional Display of Links in Widgets
- Automagic Link Shortening for Non-Hosted WP
- custom headers for static home page and posts page
- How to get multiple Action Hooks in an Array
- woocommerce Add custom field set like billing fields
- Is there a way to alter the order in which the plugins appear in the page?
- How can I control an external php (with external database) page with WordPress?
- Creating Search Engine Friendly URL’s with Word Press
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Make wordpress generate a custom XML file(not a sitemap) that is updated only when new content is posted?
- WP Northwind for Theme Development?
- How to change email address used for registrations?
- How would I go about creating a user ranked post popularity page?
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- Resizing of a header/div in a website through css in wordpress [closed]
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- Changing settings of WooCommerce
- How to add css option to Header Image customizer?
- Woocommerce – Print Product’s Custom Field In Email
- If custom image header does not exist display text header
- Use custom header as WordPress header
- Free paypal cart solution [closed]
- How do I modify the size of the text in my page titles?
- Separate header for static home page and posts page
- How Can I limit the visible part of the short-description on the Category page?
- Translating (WooCommerce) placeholder text
- WooCommer Product Category Loop – How to change the display order of the rating and price?
- Edit page header on a custom plugin
- How to Clear Empty Search values?
- Attach File Funcion for Common people
- Automatic recurring payment using YITH subscription and Dokan Stripe
- We are facing this error in header unable to understand the issue
- Create survey that redirects to sidebar menu customized to answers
- Duplicate Header and Footer
- WordPress Install – “end of script output before headers” when running simple php script
- Show Header When Not In Iframe
- Change post template the proper way
- Create a google friendly header with text and logo
- Problems with installing and deleting plugins
- How to make my wordpress site responds for 2 domains
- Making a particular kind of search engine with WordPress?
- Custom Slider Per Page created
- Admin new order email customization
- Social network plugins for WordPress [closed]
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button
- I need a plugin in wordpress like google tasks [closed]
- Take Elementor For Email FIeld Check if user is registered. IF not registered then register on woocommerece
- WordPress customizer Preview not loading
- How to get custom page template being edited in gutenberg editor
- How do I change the markup only of a built-in widget?
- Display User ID instead of Name or Username
- Is it possible to make widget return only data (eg, array)?
- className not populating in custom block
- Create custom dashboard for Multisite admins
- Viewing checkout page removes fees from mini cart
- How do I call in a category title on a category page in a child theme?
- Is it possible to add a ribbon in the background of h1 on every page?
- Add a date updated/date modified option using custom fields
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Run plugins only on certain pages
- custom theme ,add media not showing images in media library
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- Get Image from Media Library with the Title
- How to add textarea field to taxonomy (tag)?
- LinkedIn Social Wall | Is there a plug-in (Free / Paid) to display a LinkedIn feed in a social wall (not just a feed)?
- Get Custom Logo Alt Text
- Contact From 7 Custom Validation Issues
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- Gutenberg block outputting JSON in front end – is this normal?
- How to change the category url jusy show /category/%category_id% in wordpress?
- Overide plugin files from child theme (/inc/ ) folder
- Change the Labels of Users to Customers in Admin
- how do I remove the shipping from woocommerce thankyou page and from the email
- Load MediaPlayerElement after Infinity Scroll loads more posts
- wp_generate_attachment_metadata is creating an empty array
- custom payment gateway in woocommerce failed to connect to remote api server
- Custom post type adds time/date and author to the post?
- How would you implement a CTA infront of a videoplayer? [closed]
- Get Date of custom field and use conditional logic
- Control Content On Non-Blog Pages
- Display encrypted content on my website
- need help with a user-specific custom page template
- How can I use a Tiny MCE editor in my custom Gutenberg block?
- Always logged in even if remember me is unchecked?
- Add custom profile field only for site admins?
- Adding posts to custom menu [closed]
- Woocomerce custom billing address fields display in order details [closed]
- How to add an extra variable to login and authenticate it?
- Bind JS event to WordPress control customizer
- Color swatches on category page? [closed]
- Post category with counts been display like a menu
- Post custom Data value in The Events Calendar plugin [closed]
- Trying to create a private area custom for each user where they upload images to a server [closed]