In order to retrieve the first category link of a post in WordPress, paste this code into functions.php: [apcode language="php"] function wowlayers_first_cat_link(){ $category = get_the_category();...
View QuestionIn order to retrieve the first category link of a post in WordPress, paste this code into functions.php: [apcode language="php"] function wowlayers_first_cat_link(){ $category = get_the_category();...
View QuestionPretty easy. Just copy this code into your theme functions.php. [apcode language="php"] /* =================================================================================================================...
View QuestionI suggest you de-activate all your plugins and see if the website still loads that slow. If it does, activate the plugins one by one and see which one might cause the speed issues. If you de-activate...
View QuestionI am not really sure what do you mean. But to add a dropdown anywhere in your post page, you can use the HTML select tag like this: [apcode language="xml"] <label for="cars">Choose a car:</label>...
View QuestionTo show your sidebar only to the author of the post, you need to first locate the [apcode language="php"]get_sidebar()[/apcode] code in your theme files. Usually this code can be found in the root of your...
View QuestionYou can use a plugin for this. I recommend Members – Membership & User Role Editor Plugin If you want to do it with PHP, you can add a new user role like this. Copy the following code into your...
View QuestionSure. Just go to your WordPress admin dashboard Settings > Permalink > Common Settings and choose your desired URL structure. Cheers 🙂
View QuestionYou can use the wp_insert_post function in order to to this programatically. Something like this: [apcode language="php"] // The post data $post = array( 'post_title' => 'This...
View Question