How to show different sub sites based on Member’s user name In word press?

There is a filter called login_redirect which you can use. The third parameter passed to this filter is the user object, so you have all kinds of possibilities to redirect. Like this: add_filter (‘login_redirect’, ‘wpse63660_redirect’, 10, 3); function wpse63660_redirect ($redirect_to, $request, $user) { //is there a user to check? if ( isset( $user->roles ) && … Read more

404 error when I acess the second page of post-type

For modifying the main query, I think it is best to take advantage of the pre_get_posts action. When using pre_get_posts the $query variable is passed “by reference” which means we can directly manipulate the $query object with the shortcut functions such as set_query_var. Remove the query code from your taxonomy template, and try the following … Read more

Auto-Populate Image After Media Upload

In the same call where the image URL is being sent to the editor, you fill up another div with an image source. Like: window.send_to_editor = function(html) { imgurl = jQuery(‘img’,html).attr(‘src’); jQuery(‘#upload_image’).val(imgurl); imgsrc=”https://wordpress.stackexchange.com/questions/82427/<img id=”upload_image” name=”upload_image” src=””+imgurl+'”>’; jQuery(‘#image-holder’).html(imgsrc); tb_remove(); } PS: this is for the Old Thickbox, not for the New 3.5 Uploader, which has very … Read more

Different logo on homepage

It looks like the theme designer has a means for you to use a different logo on the homepage. Looking at your header.php on lines 83-93. If your theme detects that this is the front page, the title is enclosed with an <h1> tag, otherwise it is enclosed in a <div>. Both have id=’logo’. If … Read more

style.css not reflecting changes. I have no cache installed

When it happens to me it usually turns out that I’m editing the wrong file. Are you sure the active theme is the one you are editing? You should go to your admin and check. If you really deleted the right CSS file your theme should become inactive and listed as a broken theme