How to extend the page editor?

I think the batter way is to use plugin. Check this : http://wordpress.org/extend/plugins/search.php?q=form&sort= I personally suggest you Contact Form 7 Just past form plugin short code in your page/post , that’s it ! Cheers !

How can I add more code to this?

To insert new code you need to break php code and past your new html+/-php code. But pay attention that after passing all will have correct syntax. Your question should be made like this: <?php $my_query = new WP_Query( “cat=11&posts_per_page=1” ); if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); ?> <h2><a href=”https://wordpress.stackexchange.com/questions/53008/<?php … Read more

Adding a unique class to wp_nav_menu

Check out the section titled Adding Conditional Classes to Menu Items on the wp_nav_menu Codex page. This should give you a pretty good overview for adding classes to menu items using the nav_menu_css_class filter. For what you asked to do, which is add menu_element to the class attribute for both the menu item with ID … Read more

WordPress Plugin Receive a Link

You could, feasibly, do it with a custom field, ignoring ajax. You could store the ratings of each one in an array in the field. The star rating would be generated something like this: //note this is untested and provided as a guide not gospel $ratings = get_post_meta($post_ID,’star_ratings’); $total = 0; foreach($ratings as $rating) { … Read more

WordPress redirect on login

I think getting the site to redirect to the proper location on login would only be the beginning of your issues with this setup. What would happen when you want to use any WordPress function to retrieve the site url? You would possibly have to re-write those functions as well, so that they return the … Read more

Get current WordPress page then add #post ID to the end

Your answer should return: “ so from there you just do this: $final_url = $URI.’#’.get_the_ID(); Which should echo http://mydomain.com/current/page#372 which is kinda good for linking. But if your looking for a “bookmarks” link it would be best practice to do this (inside the loop): echo ‘<a href=”‘.the_permalink().'” title=”‘.the_title().'”>’.the_title.'</a>’; Which will echo “Interesting Page” (note the … Read more

Issue with custom plugin

Your plugin just creates a widget, you won’t see anything else in the Dashboard. If you drag the widget into a widget area, you’ll see all of the options to configure it. one other issue you will potentially have is the way you’re including javascript for your widget. if you use this with another plugin … Read more

WordPress & PHP sessions

It is relatively simple. I’ve giving you a few steps. User visits your site and hit ‘Add to basket’ on an event. You need to send this data to server (as you wanted to store in php session). you can submit a form (for simplicity) either in synchronously or asynchronously (ajax). You need to submit … Read more

Nav Menu Display

Register your menus in functions.php like so: if ( function_exists( ‘register_nav_menus’ ) ) { register_nav_menus( array( ‘my_main_menu’ => ‘Main Menu: description’, ‘my_sub_menu’ => ‘Sub Menu: description’, ‘my_footer_menu’ => ‘Footer Menu: description’ ) ); } Add the menu to the template like so: <?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘theme_location’ => ‘my_main_menu’, ‘container_class’ => ‘main-menu’ ) … Read more