Dying2Live
Forum Replies Created
-
I found an older post with this snippit.
add_action('init', 'demo_add_default_boxes'); function demo_add_default_boxes() { register_taxonomy_for_object_type('category', 'event'); register_taxonomy_for_object_type('category', 'event-recurring'); }I added it to my functions file and was able to use WordPress’s categories and not Event Manager’s.
this was the older post:
href=”http://wordpress.org/support/topic/events-manager-using-post-categories?replies=7Thanks for the help though.
This is the code that I have in my single-event.php file:
<div class="content"> <div class="i-am-lazy"> <div class="main-col"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div class="static-content"> <?php the_content(); ?> </div><!--Close static-content --> </div><!--close main body --> <aside> <?php if ( has_term( 'webinar' ) ) : ?> <h2>What to Expect</h2> <p> <img src="<?php bloginfo('template_url'); ?>/images/gr_events_sb_img1-02.gif" border="0" /></p> <strong>1. Presentations</strong> We invite experts to seed our conversation. </p> <p> <img src="<?php bloginfo('template_url'); ?>/images/gr_events_sb_img2-02.gif" border="0" /> </p> <strong>2. Member Exchange</strong> We discuss what we’ve heard and share our experiences. <p> <img src="<?php bloginfo('template_url'); ?>/images/gr_events_sb_img3-02.gif" border="0" /> </p> <strong>3. Networking.</strong> We continue the conversation and enjoy ourselves. <?php else: ?> <?php endif; ?> </aside> <?php endwhile; ?> <?php get_footer(); ?>Thanks for the reply aglonwl.
I tried switching the posts to pages and I’m using the “has_term” conditional tag in the single-event.php, but I’m still not having any luck. I guess what I’m not getting is how to call/single out a specific category in Events Manager. You wouldn’t happen to know how that is done would you? I cant find any documentation on it.
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Wp page navi on custom post type page@sacredpractice:
It turns out my code was working correctly. The problem was I was using custom permalinks /%category%/%postname% and pagenavi was not recognizing it. All I did was revert back to default permalinks and save the changes. I refreshed my browser then went back in to permalinks and and rechecked custom and entered in /%category%/%postname% and save the change. after I did that everything was working perfectly.I hope that that helps you.
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Wp page navi on custom post type pageHi,
I’m also calling custom post types. I got mine to show up, but when you click on page2 or page3 of pagenavi I get a 404 page.
http://www.monsterwheellaboratories.com/grandprix/pit-crewI’m using this code:
<?php $my_query = new WP_Query( array( 'post_type' => 'pit-crew', 'posts_per_page' => 4, 'paged' => get_query_var('paged') ) ); ?> <?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?> <div id="card-wrap"> <img src="<?php echo get_post_meta($post->ID, "crewcard", true); ?>" alt="<?php the_title(); ?>" /> </div> <?php endwhile; ?> <?php wp_pagenavi( array( 'query' => $my_query ) ); ?> <?php wp_reset_postdata(); ?>If anyone can help me out it would be greatly appreciated.
Thanks in advance.Forum: Fixing WordPress
In reply to: No page refresh using jquery help.sorry my code got deleted. here is a link to it in pastebin
http://wordpress.pastebin.com/0bd8tFs0Forum: Plugins
In reply to: wp-photo-album-plus problems in ie6Actually I got it to work by wrapping the short code with a div.
Crude…but it worked.<div style="width:600px; overflow:hidden; margin-left:30px;"> %%wppa%% </div>Forum: Fixing WordPress
In reply to: navigation active state problemSo I actually found this tutorial on the same site… and it works!
Just a little php and little css and I got it to work.
http://css-tricks.com/video-screencasts/36-current-nav-highlighting-using-php-to-set-the-body-id/Thanks for your time.
Forum: Fixing WordPress
In reply to: navigation active state problemthis is a link to the tutorial:
http://css-tricks.com/video-screencasts/26-designing-for-wordpress-part-two/the part about the NAV is at about minute 34.
Forum: Fixing WordPress
In reply to: navigation active state problemWell there are two reasons, and correct me if I’m wrong.
1. I was working from a tutorial on css-tricks.com.
2. I was going to leave in the native menu function, but i thought it would be easier to implement since the menu is actually split into to parts. left-nav and right-nav.Forum: Fixing WordPress
In reply to: navigation active state problemYes I’m hard coding the menu. Sorry I should have mentioned that before.
http://www.mainlineserver.com/staging/gypsystag/Forum: Fixing WordPress
In reply to: navigation active state problemsorry this is the correct css that I am using:
.left-menu {width:376px; height:30px; float:left;} .left-menu ul {list-style:none; padding-left:22px; margin:0;} .left-menu li {list-style:none outside none; display:inline; line-height:30px;} .left-menu li a {font-family:"Times New Roman", Times, serif; font-size:18px; color:#e6d7c5; text-decoration:none; font-weight:bold; margin-left:35px;} .left-menu li a:hover, .left-menu li a:active {color:#3c1b25; text-decoration:none;}Forum: Themes and Templates
In reply to: permalinks are doubling for some reason.Figured it out.
It was because I was using:
/%post-name%/It should be:
/%postname%/no ndash