How to delete categories in WordPress

To delete a category from WP , first you need to open the category listing. It will come when you will mouse over the Posts. Once you click on Categories, it will display all the categories. Then mouse over to the category which you want to delete and it will show you an Delete link. … Read more

How does WP knows which template to use for a page

The native logic of template choice is contained in file aptly named template-loader.php. It processes the current context and calls respective get_*_template() functions, until a match is found. This process results in what is called Template Hierarchy. However as it was pointed out this only covers native core logic. Plugins can wildly customize this process … Read more

I’ve been trying for an hour to remove the underline from links; I don’t understand why something that should be so simple is so difficult [closed]

Something like this should work; but without being able to see your markup, it’s hard to know for sure. a, a:hover, a:focus, a:active { text-decoration: none; } And while I typically try to stay away from !important, sometimes it comes in handy. I’ll let you be the judge for your project on whether or not … Read more

How to display both home.php and index.php

I don’t think you fully understand the meaning of templates in WordPress. You do not choose template by including it in URL, WordPress deals with choosing template by making sense of URL request. See Template Hierarchy in Codex.

How to get user contact info

It sounds like you’re after the get_userdata() function. As a basic example, you could retrieve a users email like this: <?php if ( $user_id ) { $user = get_userdata($user_id); echo ‘Users Email is: ‘ . $user->user_email; } ?>

Query parsing only author ids

Assuming that you have an array of post objects in $my_posts… $authids = array_unique(wp_list_pluck($my_posts,’post_author’)); What you will get are the post authors for the current page of posts, not the post authors for all of the posts. If you want the authors for all of the posts you will have run another query. To run … Read more