User submitted post

You can create your form, submit it to PHP_SELF, sanatize your data and finally run your data through wp_insert_post() Function. You should be able to research everything else to achieve what you’re looking for but this will get you started. Good luck!

What function does the loop of displaying posts?

The loop http://codex.wordpress.org/The_Loop Here’s a standard loop you can customize using WP_Query. <?php // The Query $the_query = new WP_Query( $args ); // The Loop if ( $the_query->have_posts() ) { echo ‘<ul>’; while ( $the_query->have_posts() ) { $the_query->the_post(); echo ‘<li>’ . get_the_title() . ‘</li>’; } echo ‘</ul>’; } else { // no posts found } … Read more

Print out one of 2 post category [closed]

If I understand your requirements correctly: $terms = wp_get_post_terms( $post->ID, ‘category’ ); echo $terms[1]->name; You can see what other values are returned by var_dumping $terms. The above assumes that you are using the category taxonomy.

Need fixing generic posting on facebook

This is quite easy to do if you have access to edit the header of your website. All you need to do is enter the appropriate Open Graph metadata for each page. ie (and taken steaight from http://ogp.me/): <html prefix=”og: http://ogp.me/ns#”> <head> <title>The Rock (1996)</title> <meta property=”og:title” content=”The Rock” /> <meta property=”og:type” content=”video.movie” /> <meta … Read more

Listing category and its posts one by one

$categories = get_categories( array( ‘child_of’ => 10 ); foreach ( $categories as $category ) { $args = array( ‘posts_per_page’ => 5, ‘offset’ => 0, ‘category’ => category , ‘category_name’ => ”, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ‘include’ => ”, ‘exclude’ => ”, ‘meta_key’ => ”, ‘meta_value’ => ”, ‘post_type’ => ‘post’, ‘post_mime_type’ => ”, … Read more

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