“operation successful” message

WordPress makes use of add_settings_error() and related function to setup notifications to display. Using them is not very straightforward, so easier way might be to make use of hooks like admin_notices or all_admin_notices to output your own message and style it in same way as WP does.

Make Current/Active Page Number a Link (WP_LINK_PAGES)

Doesn’t look like there are proper hooks to modify the output as per your requirements. But you could write a function similar to wp_link_pages() and call that in your theme. The following function would do your trick. function custom_link_pages($args=””) { $defaults = array( ‘before’ => ‘<p>’ . __(‘Pages:’), ‘after’ => ‘</p>’, ‘link_before’ => ”, ‘link_after’ … Read more

Trying do build a contact form

One way to accomplish this is to setup two pages, with two page templates, one with your form code and the other with your mail code. The form action would point to the permalink of the page whose template hosts the mail code. That said, I’d actually recommend using a plugin like Contact Form 7 … Read more

Showing latest post without 301 redirect

Custom query loops and custom page templates are your friends. Ditch the redirect function and on your home page template do something like this: <?php $args = array( ‘post_status’ => ‘publish’, ‘post_type’ => ‘seller’, ‘posts_per_page’ => 1 ); query_posts( $args ); // the Loop while (have_posts()) : the_post(); the_content( ); endwhile; ?> You can find … Read more

PHP Syntax Error on get_posts

Not sure if it is causing Dreamweaver to flag an error (try running it?), but on the second from last line you want to be using get_the_title(). This returns the posts’ title, whereas the_title() will echo it. echo ‘<a href=”https://wordpress.stackexchange.com/questions/44471/.the_permalink().”>’.get_the_title().'</a><br />’;