How could I create a ‘private comments’ section on a custom post type?

Comments have an associated author to them. In a section called “Private Comments” – Query for all comments belonging to the current post where wp_comments->comment_author_email equals the email of the current user. Checkout the wp_comments table. It has 15 or so fields you can filter when displaying comments. EDIT: The code would look something like … Read more

CMS: Making complex pages editable by the end user

Your question is quite interesting because (as I understand it )it addresses a very important aspect of coding – Planning . And planning a good structure requires a well established knowladge about the platform you are using. The question ( again – for my understanding ) can not be answered by code but more like … Read more

Search form with Category and Sub Category

First you have to give your dropdown names so: <?php $media = array( ‘name’ => ‘subcat’, ‘hierarchical’ => 1, ‘parent’ => get_cat_id(‘Media’), ‘show_option_none’ => (‘All Media’), ‘hide_empty’ => 0 ); ?> <form method=”get” id=”searchform” action=”<?php bloginfo(‘url’); ?>/”> <div> <input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”s” /> <?php wp_dropdown_categories(‘name=maincat&show_option_none=All Category’); ?> <?php wp_dropdown_categories($media); ?> <input type=”hidden” … Read more

Migrating from other CMS to WP – losing SEO juice?

You should use a sitemap module to generate a list of URLs created by XOOPs [e.g. xSitemap]. Then you have to set up your .htaccess to 301 redirect each URL to its corresponding page in the new WordPress instance. Finally, you should consider installing a WordPress plugin like Redirection to check for 404s and redirect … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)