Let Users Choose Post Categories

First, you will have to add the categories to user profiles. This question has been addressed before. That will give you the possibility to retrieve an array $data with the category ID’ a user is interested in. Now, you will need to turn that array into a list of posts. Depending on where you want … Read more

Editing the default page to show all posts, rather than most recent ones

you have to set “post_per_page” to “-1”. Add this code to your home or index.php. WP_Query (recommended) $args = array(‘posts_per_page’ => -1); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) : $the_query->the_post(); the_title(); the_content(); endwhile; /* Restore original Post Data */ wp_reset_postdata(); } else { // no posts … Read more

Make custom page look exactly as homepage

Need more info please. You can copy and rename the file something like page-template.php and add a page template header. //* Template Name: Your Page Template Name or You could rename the file home.php and pre_get_posts to control which category of posts it displays: function my_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) … Read more

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