wordpress-3.5

Wordpress 3.5: own gallery with included images doesn't work

╄→гoц情女王★ 提交于 2019-12-17 20:27:06
问题 I just updated to Wordpress 3.5, but this crashed a little part of my code: There is a php file, which loads a specific post with its gallery via AJAX. The code looks like: <?php // Include WordPress define('WP_USE_THEMES', false); require('../../../../wp-load.php'); $id = $_POST['id']; // query post with this identifier query_posts('meta_key=identifier&meta_value='.$id); if (have_posts()) : while (have_posts()) : the_post(); // add content $content = apply_filters('the_content', get_the

HTML5 ContentEditable with dynamic content?

蹲街弑〆低调 提交于 2019-12-11 09:49:54
问题 I noticed that most TinyMCE plugins give placeholders with a simple image, and perhaps some edit-button-popover functionality. Take the Wordpress gallery and image edit functionality as an example - a simple image with edit/delete buttons. Even NextGen 2 (a few versions ago at least) had Nextgen-gallery slideshow placeholder as a simple image, not rotating image. I was recently trying to make some more dynamic content within the editor. It's a challenge to insert the jQuery, then import the

WordPress JS errors in Post section after upgrade to 3.5.1

谁都会走 提交于 2019-12-11 03:17:46
问题 After upgrading to WordPress Version 3.5.1, I am getting a few JS errors and hence not able to use some basic WP features in the admin panel. E.g. On post edit page I am not able to switch the editor to html mode, not able to click on any link (Edit), tabs, etc. Please suggest what action should be taken or is it a WordPress upgrade issue? Did a reinstall but no change. The errors I noticed in firebug console are as follows . . . . TypeError: e is undefined TypeError: $(...).pointer is not a

Wordpress: An error occurred in the upload

做~自己de王妃 提交于 2019-12-01 20:39:57
问题 After updating to WordPress 3.5, I started getting the following error when uploading files using the Add Media button as a non-admin user: Error: An error occurred in the upload. Please try again later. The image seems to finish uploading, but right at the end this error message appears. This doesn't happen for the administrator, only the other roles. I've even tried giving the other role full admin capabilities, but the error still appears. Is this a bug? Or am I missing something? 回答1:

Wordpress 3.5: own gallery with included images doesn't work

℡╲_俬逩灬. 提交于 2019-11-28 12:46:39
I just updated to Wordpress 3.5, but this crashed a little part of my code: There is a php file, which loads a specific post with its gallery via AJAX. The code looks like: <?php // Include WordPress define('WP_USE_THEMES', false); require('../../../../wp-load.php'); $id = $_POST['id']; // query post with this identifier query_posts('meta_key=identifier&meta_value='.$id); if (have_posts()) : while (have_posts()) : the_post(); // add content $content = apply_filters('the_content', get_the_content()); echo '<div class="content-inner">'.$content.'</div>'; endwhile; endif; ?> The post contains a

WordPress 3.5 custom media upload for your theme options

两盒软妹~` 提交于 2019-11-27 16:42:21
WordPress 3.5 has been released recently, I used the WordPress Media Upload system via thickbox and window.send_to_editor for some options in my WordPress theme (backgrounds, logos etc...). But as you know WordPress has integrated a new Media Manager, I wanted to used this new feature to upload images/files as custom fields. So I spent the morning to find a way to get the wished result. I found with this solution, which can be useful for some of you. Thanks to give me your feedback on the code or any improvements you have in mind! HTML Sample: <a href="#" class="custom_media_upload">Upload</a>

WordPress 3.5 custom media upload for your theme options

余生颓废 提交于 2019-11-26 18:44:30
问题 WordPress 3.5 has been released recently, I used the WordPress Media Upload system via thickbox and window.send_to_editor for some options in my WordPress theme (backgrounds, logos etc...). But as you know WordPress has integrated a new Media Manager, I wanted to used this new feature to upload images/files as custom fields. So I spent the morning to find a way to get the wished result. I found with this solution, which can be useful for some of you. Thanks to give me your feedback on the