How does wordpress link page templates to individual pages
It’s stored in post meta under the key _wp_page_template.
It’s stored in post meta under the key _wp_page_template.
If you go to appearance->Menus, you should be able to fully customize your menu, assuming your theme is even decent.
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
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
In the theme you have choosen (twenty ten) – the main Container where you page / post is posted is the div: <div id=”content” role=”main”> <!– YOUR CONTENT IS PUBLISHED HERE –> </div> . This div has a maximum width of 640 pixels… if you want to change that you can do one of three … Read more
This can be accomplished with WordPress’s internal rewrite system by using add_rewrite_rule and adding a query var. function wpse47506_rewrites_init(){ add_rewrite_rule( ‘about/case-studies/([^/]+)/?$’, ‘index.php?pagename=about/case-studies&clientname=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpse47506_rewrites_init’ ); function wpse47506_query_vars( $query_vars ){ $query_vars[] = ‘clientname’; return $query_vars; } add_filter( ‘query_vars’, ‘wpse47506_query_vars’ ); This would go in your functions.php file, then visit the permalinks settings … Read more
Correct to your first test: $id = 49; $test = get_page( $id );
You can use an iFrame to display a Weebly page in a WordPress page, but that’s it; display only. There’s no direct data sharing. See http://www.w3schools.com/html/html_iframe.asp