What to use: wp_is_post_autosave( $post_id ) or DOING_AUTOSAVE?
What to use: wp_is_post_autosave( $post_id ) or DOING_AUTOSAVE?
What to use: wp_is_post_autosave( $post_id ) or DOING_AUTOSAVE?
Reset permalinks at Dashboard>>Settings>>Permalinks and be sure WP says it was able to make changes to the .htaccess file, or make the changes yourself it fails to write to .htaccess. Did you change installed directories? I.e., from /wordpress/ to root? If so, see http://codex.wordpress.org/Moving_WordPress And if you moved to a Windows IIS server, be sure … Read more
Probably your already solved this (hopefully not by hand). This part of your question is intriguing: I found that if I open a post through WordPress front-end and then click “update” the custom field data and the post content “sync” Do you mean back-end, right? If so, I think a bulk update would solve this … Read more
I am not familiar with bbpress, but I think that first you need to get the forums in your site and then you need to loop through its topics to obtain the topic that matches your criteria of popular topics. You can search in the docs or source code to find the functions and methods … Read more
This is not yet a complete answer, for lack of time, though I’ll try to return later with a more complete example but I just wanted to add a couple of notes. Possibly someone else will jump in soon. To get the ball rolling… Firstly, Yes this is entirely possible, you can create this functionality … Read more
I assume this is a page or page template of some sort? I had a similar need so submitted a patch to the Infinite scroll plugin for the inclusion of a new filter infinite_scroll_load_javascript. By default the plugin doesn’t load on any singular posts/pages, but with this filter you can toggle it to load wherever … Read more
You can includes pages inside your RSS feed by adding this code into your theme or child theme’s functions.php file (Child theme is preferred so it doesn’t get removed with updates). I tested this on a fresh install and it works. You can easily test by going to yourdomain.com/feed/. function feed_request($qv){ $rss_post_types = array(‘post’, ‘page’); … Read more
Your best bet is to use custom post meta to store the code, and output it however you want. In other words, skirt the editor entirely. Here’s a really clever WP theme by Dan Cederholm that does this like a champ.
First, you need a list of all available URIs. You may use my plugin T5 All URIs for that. Just activate and go to your blog on /alluris/. There is also a link to the file in your plugin list after activation. Then you need your log files, ideally one file with all requests from … Read more
The problem is that $content is a reserved variable in WordPress, you have to use another name. Here, I have used $pre_content: <?php /** * Plugin Name: T5 Editor content by request * Description: Default text for post content from GET variable <code>pre_content</code>. * Author: Fuxia Scholz * Version: 2012.06.30 */ /* * See wp-admin/includes/post.php … Read more