My posts section for logged in user

You don’t need to put your code in your theme functions. This needs to be a custom page template. Learn about page templates here: http://codex.wordpress.org/Page_Templates Your code is custom loop so you need to also learn about loops and then using WP_Query so next stop will be here: http://codex.wordpress.org/The_Loop Then read this page: http://codex.wordpress.org/Class_Reference/WP_Query After … Read more

Back up post tags

Just export the wp_terms table (or *_terms if you have a custom prefix) as a .sql file, then truncate the table. This will clear them all. If you want to put them back on, just import the .sql file you just created. Hope this helps

Reading Setting Not Working for Number of Posts

No need to edit your parent themes files as its bad practice. You can use this code in your child themes functions file add_action( ‘pre_get_posts’, ‘wpsites_limit_posts’ ); function wpsites_limit_posts( $query ) { if( $query->is_main_query() && !is_admin() && is_home() ) { $query->set( ‘posts_per_page’, ‘1’ ); } } Won’t work when admin is logged in. Change the … Read more

Assign specific ads to specific categories/posts

You have attempted to paste your PHP into a text widget. and the tags have been transformed. <div class=”textwidget”> <!–?php if (is_category(‘5′)) { ?–> You can’t execute PHP from a text widget by default, and I would not recommend trying to do so (it should be possible). Instead, it is trivial to build your own … Read more

Getting posts from multiple users?

First of all, I suggest don’t use query_posts. (No one is really a WPSE user if had no read this answer). So you can use WP_Query with author__in parameter in combination with array_keys PHP function. $paged = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1; $query = new WP_Query( array( ‘author__in’ => array_keys( $following … Read more

Latest Posts not in the right order

I actually got this issue fixed with a very simple feature in wordpress my theme developer had never mentioned, after hours of misery and awesome help from @Pieter . I was doing a lot of research and found out some themes required I use the <!–more–> tag built in wordpress to show only a part … Read more