How to show pages in menu without link
Just add a custom link (wp-dashboard > Appearance > Menus) using a dummy url, then add the custom link to your menu, and edit the menu item and remove the url.
Just add a custom link (wp-dashboard > Appearance > Menus) using a dummy url, then add the custom link to your menu, and edit the menu item and remove the url.
If you go to appearance->Menus, you should be able to fully customize your menu, assuming your theme is even decent.
I would recommend using Custom Post Types (and, likely, custom taxonomies). Some intrepid developers did just that, for a proof-of-concept game built on WordPress, and presented it at WordCamp Toronto 2011.
I am not entirely sure what you’re asking, so I’m going to stake a wild stab in the dark until you can provide more information provided I don’t tell you exactly what you wanted to know. If by public you mean; pages with a certain tag lets say for this example the tag is ‘public’ … Read more
You have so many things wrong with your code, to start WP_Query does not have ‘sort_column’ , or ‘depth’ parameters. the use of $do_not_duplicate = $post->ID; does nothing at all and a few other things. What you need is to get the children (just the ids, no need to get the post object since you … Read more
Yup, inside the loop (in single.php for example) you can use get_the_terms to retrieve an array of terms (countries in this case) associated with that post. This will always be an array (or false /error if something has gone wrong) even if there is only one country associated to it. You can then take the … Read more
I recommend to implement a simple an flexible paging mechanism using JavaScript/JQuery/Ajax or using PHP. If looking for the client side solution, this article about jQuery pagination plugins might be a good starting point for your research. If you want to make more than one one actual page, you should use PHP. You can introduce … Read more
You want to use is_paged which checks if the current page number is 2 or above (and returns true if it is). is_front_page checks ‘if the main page is a posts or a Page’. You’ve also used incorrect syntax (changed from a double quote to a single quote, and used <?php inside a string being … Read more
The code you’re posting should work, as far as I can tell; however, you’re using some outdated template tags. Try replacing bloginfo( ‘url’ ) with echo home_url(), and bloginfo( ‘template_directory’ ) with echo get_template_directory_uri(), like so: <a href=”https://wordpress.stackexchange.com/questions/45310/<?php echo home_url(); ?>”> <img src=”<?php echo get_template_directory_uri(); ?>/images/logo.png” alt=”Good Morning Moon”/> </a> For more specific instruction, it … Read more
There is an awesome plugin by @scribu called Posts 2 Posts. It allows you to manually associate different post types (or the same post type) with each other. I use it quite a bit for bigger CMS type projects and even pluginized a common pattern I found myself writing on a few sites. Here’s an … Read more