Adding a post to a page
Well, if you just want to add specific Post’s content/title/other stuff to specific Page, You can just use get_post() function. But Your formulation of question very vague.
Well, if you just want to add specific Post’s content/title/other stuff to specific Page, You can just use get_post() function. But Your formulation of question very vague.
I agree with @brasofilo that this is two very different questions, but I think we can answer both here. 1. Automatically add child pages of A to custom taxonomy B’s term C. We’ll add the term ‘yummy’ in the custom taxonomy ‘food-adjective’ to all child pages of page ID 123 when they’re published. You can … Read more
In order to make this work you will need to modify the template a bit, but it’s fairly straight forward to add a menu to wordpress. The Codex has a great writeup on the subject: http://codex.wordpress.org/Navigation_Menus You have to “Register” the menu in functions.php by adding code similar to: function register_my_menus() { register_nav_menus( array( ‘header-menu’ … Read more
If your slash.png is merely cosmetic, I would advise you use the CSS ::after pseudo-element, which matches a virtual last-child of the element in question. Then use the :last-child selector to avoid it displaying in the last item. It should be something like so: ul.nav li::after { background: url(“https://wordpress.stackexchange.com/questions/88609/images/slash.png”) bottom no-repeat; content: ”; display: inline-block; … Read more
It looks like this display: inline-table; is causing the extra space to appear at the bottom. You can fix it by adding margin: 0 0 -4px; to the item .menu-top-container ul li I found some help information on these inline objects, here. It seems to be used to center the menu in that navigation, but … Read more
Since the text that displays your navigation is made out of anchor points, which has the color: #333333; assigned, you’ll have to add the .current-menu-item color to the anchor itself: #header nav .current-menu-item a { color: #c6e000; }
It’s pretty easy to set whatever page you want as your homepage. The WP Codex has pretty detailed instructions on how you can do it. But basically you create two pages, one for your homepage and another page for your blog (or news or whatever else you want to call the dynamically generated content–or none … Read more
Yes, You can easily switch menus using conditional tags. For example If you want to show different menu for logged in user and non-logged in user then It may be like: <?php if ( is_user_logged_in() ) { wp_nav_menu( array( ‘theme_location’ => ‘logged-in-menu’ ) ); } else { wp_nav_menu( array( ‘theme_location’ => ‘logged-out-menu’ ) ); } … Read more
I’ve been using this template from twenty eleven. I must give great credit here to a great tutorial from digitalraindrops. I have rewritten this to suite my needs and it is currently written to suite the twentyfourteen theme. You can check out the tutorial at the link given above. What I like about this template … Read more
And this is the custom code I put in my “functions.php” of my child theme. It is important to notice that there are many things to get improved (like creating an id for every submenu and grab the classes dinamically in case you change the theme) but this was a “quick and dirty” solution. If … Read more