wordpress-plugin

w3c validator shows error for facebook open graph

微笑、不失礼 提交于 2019-12-01 10:59:24
I get 2 errors while validating my site in w3c validator. Line 7, Column 47: Attribute xmlns:og not allowed here. xmlns:fb="http://www.facebook.com/2008/fbml" > Line 7, Column 47: Attribute with the local name xmlns:fb is not serializable as XML 1.0. xmlns:fb="http://www.facebook.com/2008/fbml" > I guess it is related with Facebook open graph. I'm running my site on wordpress and using All in one SEO pack with Social features enabled. When Social feature is disabled, my site validates perfectly with no errors. Is there any fix to this problem? This is how it looks on site <!DOCTYPE html> <!--/

wordpress plugin - how to change the post date time?

不问归期 提交于 2019-12-01 10:51:32
I have a plugin that I need to change the post date time. What WP function should I use to do this? thanks You would want to use wp_update_post($post) with a new post_date value - http://codex.wordpress.org/Function_Reference/wp_update_post $mypost = array(); $mypost['ID'] = 111; // the post ID you want to update $mypost['post_date'] = $your_date; // uses 'Y-m-d H:i:s' format wp_update_post($mypost); 来源: https://stackoverflow.com/questions/13114270/wordpress-plugin-how-to-change-the-post-date-time

Medium size image by plugin called dynamic featured image

穿精又带淫゛_ 提交于 2019-12-01 09:51:32
问题 i am using dynamic featured image and adding multiple product images to a single custom post type name as products for a single product but and i am trying to get those images in my template but the array only return me only two sizes [thumb] [full] but i need medium as well below is my code <?php if( class_exists('Dynamic_Featured_Image') ) { global $dynamic_featured_image; $featured_images = $dynamic_featured_image->get_featured_images(); foreach($featured_images as $featured_image) { ?> <a

Call external url through $.ajax in WordPress theme

旧时模样 提交于 2019-12-01 09:35:23
My WordPress application is hosted on url http://127.0.0.1/wordpress/ and i added following script in WordPress header to get some token but it does not give any token I copied that url ( http://127.0.0.1:8090/sample/sample/getToken ) and open in new tab it successfully return token but when i called it using $.ajax it does not return me token <script> $().ready(function(){ $("#signIn").click(function(){ alert("Display Alert Properly"); $.ajax({ type: "POST", url: "http://127.0.0.1:8090/sample/sample/getToken", contentType: "text/html", success: function(token) { window.open("https://api

wordpress plugin - how to change the post date time?

白昼怎懂夜的黑 提交于 2019-12-01 08:58:53
问题 I have a plugin that I need to change the post date time. What WP function should I use to do this? thanks 回答1: You would want to use wp_update_post($post) with a new post_date value - http://codex.wordpress.org/Function_Reference/wp_update_post $mypost = array(); $mypost['ID'] = 111; // the post ID you want to update $mypost['post_date'] = $your_date; // uses 'Y-m-d H:i:s' format wp_update_post($mypost); 来源: https://stackoverflow.com/questions/13114270/wordpress-plugin-how-to-change-the-post

wordpress 3.8.1 category page 2 error 404 not found / custom post type

拜拜、爱过 提交于 2019-12-01 08:54:49
first the problem, then the tries. Problem The problem is that i get a 404 NOT FOUND error if i visit another page than the first category page. On the category page i have a normal pagination. The first site works. ( http://mypage.com/category/properties ) After i click on the "Next page" button I'm on the page http://mypage.com/category/properties/page/2 and got the error 404 NOT FOUND. But why? Tries First I tried this Question Custom Post Type and Taxonomy pagination 404 error , but the exclude_from_search and the queries below doesnt work. I tried this, too. http://wordpress.org/support

Call external url through $.ajax in WordPress theme

≯℡__Kan透↙ 提交于 2019-12-01 08:25:54
问题 My WordPress application is hosted on url http://127.0.0.1/wordpress/ and i added following script in WordPress header to get some token but it does not give any token I copied that url ( http://127.0.0.1:8090/sample/sample/getToken ) and open in new tab it successfully return token but when i called it using $.ajax it does not return me token <script> $().ready(function(){ $("#signIn").click(function(){ alert("Display Alert Properly"); $.ajax({ type: "POST", url: "http://127.0.0.1:8090

Google OpenID not working with OpenID plugin in WordPress

烂漫一生 提交于 2019-12-01 08:13:08
The OpenID plugin for WordPress doesn't seem to accept either of the Google OpenID provider links: http://google.com/profiles/username or https://google.com/accounts/o8/id It returns the error (for both): Could not discover an OpenID identity server endpoint at the url: http://google.com/profiles/username Any idea why? The janrain engage plugin works, but I can't use that because of other issues with that. The problem is solved. Since Google, Yahoo and some other OpenID providers provide https endpoints, curl tries to verify the other end when making a POST request to it -- since curl does not

Google OpenID not working with OpenID plugin in WordPress

独自空忆成欢 提交于 2019-12-01 06:37:46
问题 The OpenID plugin for WordPress doesn't seem to accept either of the Google OpenID provider links: http://google.com/profiles/username or https://google.com/accounts/o8/id It returns the error (for both): Could not discover an OpenID identity server endpoint at the url: http://google.com/profiles/username Any idea why? The janrain engage plugin works, but I can't use that because of other issues with that. 回答1: The problem is solved. Since Google, Yahoo and some other OpenID providers provide

wordpress 3.8.1 category page 2 error 404 not found / custom post type

蹲街弑〆低调 提交于 2019-12-01 05:39:02
问题 first the problem, then the tries. Problem The problem is that i get a 404 NOT FOUND error if i visit another page than the first category page. On the category page i have a normal pagination. The first site works. (http://mypage.com/category/properties) After i click on the "Next page" button I'm on the page http://mypage.com/category/properties/page/2 and got the error 404 NOT FOUND. But why? Tries First I tried this Question Custom Post Type and Taxonomy pagination 404 error, but the