wp_nav_menu doesn’t show on index page
It looks like this behavior is the result of adding custom post types to the query. See http://wordpress.org/support/topic/wp-nav-menu-dissapears-in-category-pages-1
It looks like this behavior is the result of adding custom post types to the query. See http://wordpress.org/support/topic/wp-nav-menu-dissapears-in-category-pages-1
Simple:Press is what you are looking for. According to their Web site, they are “the number one forum plugin that integrates seamlessly into your WordPress website.” bbPress is another good one.
There are quite a few ways to do this, here are a couple: Use a plugin to control which Widgets display on which Pages/Sections. This is a plugin I’ve used which works well. It adds a “hide/show on….” checklist to each widget where you can select where the widget will display. Works great, but if … Read more
Use WP_Query class to do it: $the_query = new WP_Query( array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘page’, ‘posts_per_page’ => 1, ) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <h2 class=”subpagetitle”> <a href=”https://wordpress.stackexchange.com/questions/55118/<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title(); ?>”> <?php the_title(); ?> </a> </h2> <?php endwhile; // Reset Post Data wp_reset_postdata();
More information about your specific plans might help improve answers you’ll get on this thread. But in general RE: conflicting file names: if you install WordPress in a subdirectory (for example, “/blog/”), it doesn’t matter what you name the rest of your files so long as they’re not in the WP dir. This is what … Read more
Disregard, I found the problem. I needed to refresh the .htaccess file by going to Settings->Permalinks and hitting Save Changes.
Here is another similar thread that have been resolved now.. Get name of the current template file Take a look..
you can use rewrite parameter in register_post_type ‘rewrite’ => array(‘slug’ => ‘product’,’with_front’ => FALSE) and change the permalink structure to postname.
I’m not sure if it can be done with posts, but if you’re using pages, you can use a template called page-id.php where id is the page id of your track car page. The template hierarchy can help you.
This may be what your looking for: ` <div class=”blog-post”> <?php static $count = 0; if ($count == “4”) { break; } else { ?> <h2><a href=”https://wordpress.stackexchange.com/questions/62131/<?php the_permalink() ?>”><?php the_title(); ?></a></h2> <ul class=”meta”> <li><?php the_time(get_option(‘date_format’)); ?></li> <li>| </li> <li><span>Posted By</span> <?php the_author_posts_link(); ?></li> <li>| </li> <li><a href=”#”><?php comments_number(‘No comments yet’,’1 comment’,’% comments’)?></a></li> </ul><!–end of meta–> … Read more