Is there a page length limit?

The post content field is MySQL type longtext, which has a limit of 4 gigabytes. What you may be encountering is an issue with the TinyMCE editor. Content is processed and validated in the browser with JavaScript. If that’s the case, I doubt you will improve your situation by using Drupal, since you will be … Read more

What content to use for inserting images

Images (and other media) in WordPress are stores as attachments — which are a special native post type (more or less). There are two common ways to display attachments in a post context: Include them in post content (individually or via gallery shortcode) Select one as featured image (aka post thumbnail) and have theme with … Read more

WordPress get_the_content losing formatting when emailed

The default email content type is text/plain which does not allow using HTML. Add this to your functions.php file: // use HTML instead of plain text add_filter( ‘wp_mail_content_type’, ‘my_awesome_mail_content_type’ ); function my_awesome_mail_content_type() { return ‘text/html’; } But be warned, different email clients has very different support for CSS rules.. Read more from here. Alternative: If … Read more

What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?

PHP is running on the server, JavaScript in the client. This means PHP is faster (more resources), the result can be cached, and you have to test only one interpreter. JavaScript – you don’t really need jQuery for this – is more error prone, because of weird clients, blocked resources, or a more limited available … Read more

Get full content from feeds and save a duplicate copy in my site

You can do this on background using some ajax on page load, here is an untested example to show the idea. jQuery(function() { jQuery.get(‘http://domain.tld/remote’); }); <?php function is_ajax() { return (isset($_SERVER[‘HTTP_X_REQUESTED_WITH’]) and strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’); } function add_rewrite_rules($wp_rewrite) { $new_rules = array ( ‘remote’ => ‘index.php?remote=true’ ); $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } function add_query_vars($vars) … Read more

Problem with content – not loading

The error message you get means that a function has been hooked without a valid callback. In other words it means that somewhere in your theme or in a plugin a function has been set but it’s not “hooked” properly. See the example : function add_post_content() //<- the callback { // blabla } add_action( ‘hook_name’, … Read more

Change default italic from to in admin editor

Are you sure editor use <i> for italics? I’m almost sure it uses <em>. However, if you want to be absolutely sure there are no <i> in your post content, let editor do what it want and then replace <i> with <em> before creating/updating posts, hooking wp_insert_post_data filter, just like: add_filter(‘wp_insert_post_data’,’replace_em’, 20, 1); function replace_em( … Read more