WordPress multidomains and subfolders

According to this codex entry, it is not possible to install WordPress in a sub-directory and use the Sub-domain install. However, you should be able to install WordPress in a sub-directory (example.com/foo) and use the other sub-directories for your networked sites (example.com/bar). Also, check out this entry for more info on installing WordPress in a … Read more

How to get alphabetic listing x other posts, based on first letter post?

For the solution you can use if statement as below put it in your sidebar, it will highlight the current post title. <ul> <?php $IDOutsideLoop = $post->ID; $args = array( ‘posts_per_page’ => -1, ‘orderby’=> ‘title’, ‘order’ => ‘ASC’ ); $myposts = get_posts( $args ); foreach($myposts as $post) : ?> <li <?php if(is_single() && $IDOutsideLoop == … Read more

How do i hide categories from menus which don’t yet contain posts?

It depends which function you are using for querying those categories, but all of them has hide_empty argument for example for: <?php get_terms( $taxonomies, $args ); $taxonomies = array( ‘post_tag’, ‘my_tax’, ); $args = array( ‘hide_empty’ => true, ); ?> get_terms by default, hide_empty argument is empty so check if it’s false in you code.

Loaded JavaScript file not showing [duplicate]

If the files show up in the html source then there is something wrong with your javascript (it may even be as simple as missing a semicolon in the wrong place). Without further information we can’t help you. Beware that wordpress loads jquery in no conflict mode so the function call is jQuery() and not … Read more

Only display price when value exist

Assuming this produces the first price currently: echo ‘<th>’ . wpforest_currency_simb() . get_post_meta( $post_id->ID, ‘WpForest_price’, true ) . ‘ ‘ . get_option( ‘wpf_paypal_cur’ ) . ‘</th>’;z And assuming I understand the question, this should test for the first price: $price = get_post_meta( $post_id->ID, ‘WpForest_price’, true ); if ( $price ) echo ‘<th>’ . wpforest_currency_simb() . … Read more

How to load wordpress sidebar using AJAX [duplicate]

Just go ahead and use a CSS media query to set the sidebar to display: none if the screen is too small, and provide your mobile users with some JavaScript that lets them selectively view it if they want to. Don’t worry about the loss in bit-and-cycle efficiency this causes; assuming that you get no … Read more

User registration add user ID?

You can’t add the ID at registration because there is no ID until after the user has registered. (See a possible way around this near the bottom). You could tack on the ID after the registration with the user_register hook. function add_ID_wpse_99390($a) { global $wpdb; $user = new WP_User($a); $wpdb->query(“UPDATE {$wpdb->users} SET user_login = CONCAT(user_login,’_’,ID) … Read more