Thumbnails from video posts not working after upgrading to WP 3.4
There seems to be a solution there, though it’s not perfect -it worked perfectly on one of my two sites and almost perfectly on the other…-
There seems to be a solution there, though it’s not perfect -it worked perfectly on one of my two sites and almost perfectly on the other…-
Ok, I got it… by query all the post types $arg = array(‘post_type’=> array (‘cpt’,’post’),); query_posts( $arg);
You use preg_replace function incorrectly. This function returns replaced content: add_filter( ‘the_content’, ‘wpdu_image_replace’ ); function wpdu_image_replace( $content ) { return preg_replace( ‘/<img.*?src=”https://wordpress.stackexchange.com/questions/55241/(.*?)”.*?>/’, ‘<a href=”$1″>Image file</a>’, $content ); } Also pay attention that you don’t have to use global variable $post, because content of the post is passed to your function as first argument.
After days and days of frustration, I’m proudly answering my own question. The original code was not displaying multiple checkboxes because I was using the conditional !strcmp( $term->slug, $selected[0]->slug ) to render my “checked” options. Somehow it only returned 1 “checked” value at best. The correct conditional simply gets the value of the selected option, … Read more
When you moved the site, did you export and then re-import the content? I’m wondering if maybe the custom data just didn’t make it into the live server’s database. The first place to look for whether that’s the case would be either on the post’s edit screen or within the database itself with PHPMyAdmin or … Read more
Your plugin just creates a widget, you won’t see anything else in the Dashboard. If you drag the widget into a widget area, you’ll see all of the options to configure it. one other issue you will potentially have is the way you’re including javascript for your widget. if you use this with another plugin … Read more
This has to do with auto saving. You need to check the following before saving your fields: if ( ! isset( $_POST[‘action’] ) || $_POST[‘action’] != ‘editpost’ || ‘revision’ == $post->post_type ) return;
try add trailingslash for paged add_filter(‘user_trailingslashit’, ‘wpse_paged_trailingslash’,10,2); function wpse_paged_trailingslash($url,$type){ if ($type === ‘paged’) { if (substr(get_option(‘permalink_structure’), -1) !=”https://wordpress.stackexchange.com/”) return trailingslashit($url); } else { return $url; } }
The URL can vary based on your settings. Do you have a category or tag base set? I believe the default URL of mytag would go to mysite.com/mytag. See more at the wordpress codex page on permalinks.
I had to allow Cookies in my Android Phone Web Browser. After activating Cookies I could log in my Blog and got redirected to its main page.