How do I create a menu item which has all posts under one menu item? Something like “all stories” and when the user clicks on it, he / she can see all posts…
]]>THANK YOU SO MUCH IN ADVANCE!
]]>I have the plugin installed on my dev site, and it is working and functioning as it should.
When I installed the plugin on my live environment, the plugin installs, and can activate it, but it does not appear on the left nav, and therefore I cannot set it up.
Have you (or anyone) had this issue before? Everything is the exact same on both environments, they are just on 2 different servers.
Thanks in advance for your help.
Erin
https://www.ads-software.com/plugins/mailchimp-for-wp/
]]>thanks,
~rob
I currently have a number of anchor (jump) links within the default WordPress menu in the 2012 theme.
If I click on one anchor link in a list, it highlights all anchor links (because the theme is set to add the current-menu-item class to a menu item if it’s on a page).
However, I just want one highlighted.
I’ve been able to remove the current-menu-item class through jquery if I’m already on the page:
$(‘#menu-item-19 .sub-menu li’).on(‘click’, function(){
$(‘.current-menu-item’).removeClass(‘current-menu-item’);
$(this).addClass(‘current-menu-item’);
});
But the above only removes the .current-menu-item class if it already exists. How do I have just one anchor link highlight in the WordPress menu if I’m not already on the page?
]]> <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2>Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Archive for <?php the_time(‘F jS, Y’); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class=”pagetitle”>Archive for <?php the_time(‘Y’); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class=”pagetitle”>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<h2 class=”pagetitle”>Blog Archives</h2>
<?php query_posts(‘cat=8&paged=’.get_query_var(‘paged’));
?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?>>
<h2 id=”post-<?php the_ID(); ?>”>“><?php the_title(); ?></h2>
<?php include (TEMPLATEPATH . ‘/inc/meta.php’ ); ?>
<div class=”entry”>
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
<?php include (TEMPLATEPATH . ‘/inc/nav.php’ ); ?>
<?php else : ?>
<h2>Nothing found</h2>
<?php endif; ?>
This code shows all the post in the particular category which is News. But the problem is that when i click the monthly archives for the month of september, it shows everything even the post from august. and also in august archives, it shows all the post including the september. I think the problem in my loop. Please help me with this
]]>