make anchor tag where you want to open thickbox popup same as below
<a href=’”.get_site_Url().”/wp-admin/admin-ajax.php?action=send_remainder_live_chat&TB_iframe=true&height=400&width=500′ class=’thickbox’ > Click here </a>
make anchor tag where you want to open thickbox popup same as below
<a href=’”.get_site_Url().”/wp-admin/admin-ajax.php?action=send_remainder_live_chat&TB_iframe=true&height=400&width=500′ class=’thickbox’ > Click here </a>
(function($){
var random = 0;
$.expr[':'].random = function(a, i, m, r) {
if (i == 0) {
random = Math.floor(Math.random() * r.length);
}
return i == random;
};
})(jQuery);
// This is how you use it:
$(‘li:random’).addClass(‘glow’);
<?php
query_posts(‘showposts=1&cat=3′);
while(have_posts()) : the_post();
?>
<ul>
<li><h3><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a></h3>
<ul>
<li><?php the_content(); ?></li>
</ul>
</li>
</ul>
<?php endwhile; ?>
<form action=”<?php bloginfo(‘url’); ?>/” method=”get”>
<?php
$select = wp_dropdown_categories(‘show_option_none=Select Category&show_count=1&orderby=name&echo=0&selected=6′);
$select = preg_replace(“#<select([^>]*)>#”, “<select$1 onchange=’return this.form.submit()’>”, $select);
echo $select;
?>
<noscript><input type=”submit” value=”View” /></noscript>
</form>
HTML or CoreĀ PHP
<!– AddThis Button BEGIN –>
<div>
<a tw:count=”vertical” ></a>
<a fb:like:layout=”box_count” fb:like:width=”52″ fb:like:height=”65″></a>
<a g:plusone:size=”tall”></a>
<a></a>
</div>
<script type=”text/javascript”>var addthis_config = {“data_track_clickback”:true};</script>
<script type=”text/javascript” src=”http://s7.addthis.com/js/250/addthis_widget.js#username=bnmi”></script>
<!– AddThis Button END –>
First you need to name your images in this format:
Once you have done that paste the following code in your header.php where you would like the images to be displayed or in any other file.
<img src="http://image_folder_path/headerimage_<?php echo(rand(1,3)); ?>.gif" width="image_width" height="image_height" alt="image_alt_text" /
<?php include_once(ABSPATH.WPINC.'/feed.php');
$rss = fetch_feed('http://feeds.feedburner.com/wpbeginner');
$maxitems = $rss->get_item_quantity(5);
$rss_items = $rss->get_items(0, $maxitems);
?>
<ul>
<?php if ($maxitems == 0) echo '<li>No items.</li>';
else
// Loop through each feed item and display each item as a hyperlink.
foreach ( $rss_items as $item ) : ?>
<li>
<a href='<?php echo $item->get_permalink(); ?>'
title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>
<?php echo $item->get_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>