WordPress category gives 404 after moving to a different domain
Setup 301: Moved Permanently redirects! This post should be helpful
Setup 301: Moved Permanently redirects! This post should be helpful
Once you retrieved your categories, let’s say in $categories, you can do something like this: <?php foreach ($categories as $catgory) { ?> <form id=”cat-button-form-<?php echo $category->ID; ?>” action=”<?php echo $url_to_step_2; ?>” method=”POST”> <input type=”hidden” name=”mycat” value=”<?php echo $category->ID; ?>” /> <input type=”submit” name=”getcat” id=”getcat_<?php echo $category->ID; ?>” class=”btn_catstep” value=”<?php printf(__(‘Select %s & Continue’), $category->name); ?>” … Read more
I did spot one problem in your case clause for radio buttons: In your <label> tag, you use $val, but I think you meant $option[‘id’]. I don’t see how it could be related to the foreach error you’re getting, but it won’t hurt to fix it. The odd thing is that the real error is … Read more
why not add a filed to user meta once they have voted and just check to see if that specific user can vote? add to your add vote function this lines: global $current_user; get_currentuserinfo(); add_user_meta( $current_user->ID , ‘voted’, true ); now if a user votes it saves a usermeta filed. then you can create a … Read more
That depends on the volume of posts you are going to have for recordings and regular posts. if you are talking about a few of each then using the built-in categories and tags will do and you can leverage all of the built-in functions for tags and categories, otherwise there is no harm in using … Read more
your problem is that in the first loop you overwrite $do_not_duplicate for each post in the loop so at the end you only have the id of the last post. if you change $do_not_duplicate into an array then you can add each post to the array: //before the loop $do_not_duplicate = array(); //in the loop … Read more
You may complete override your gallery shortcode using the filter post_gallery. The return is displayed in your page and no further processing of the shortcode is done. You may iterarate through the image attached to your post to build your own gallery. See the implementation of gallery shortcode here: http://core.trac.wordpress.org/browser/trunk/wp-includes/media.php#L758 EDIT: There are some plugins … Read more
Sorted this myself! May help some people… $cat = get_query_var(‘cat’); $prod_extras = get_option(Category_Extras); $this_application = $prod_extras[$cat][‘Category_Extras_Applications’]; if(!empty($this_application)) { echo $this_application; } Cheers, Dave
did you call rewind posts? I’ve done something similar on a site and used css to solve. The site uses 960 grid (960.gs), which comes packaged with “push” and “pull” classes that let you rearrange content relative to its position in the markup. In our case, the sidebar content is coming from a sidebar template … Read more
So i decided that for me, i can settle for changing an input field on the top.parent for it to be used with the native options. i used this for the function of the iframe tab: function media_upload_choosebackground_form() { media_upload_header(); ?> <h3 class=”media-title”>HTML Form</h3> <img src=”http://www.mimi.me/wp-content/themes/mimi.me_regular_sites/images/background-Green-stripes-thumb.jpg” style=”cursor:pointer; float:left; margin:10px 0 0 10px” id=”greenstripes” title=”Green Stripes” … Read more