Paat
Forum Replies Created
-
Forum: Plugins
In reply to: [AdPress] Destination and Ad Graphic not savingI had the same problem, looked in the code and this is how I resolved this:
In admin_actions_class.php, line 268 (or save_post function), add the following:
$adpress = $GLOBALS['AdPress'];All the admins functions call the $adpress object, which save_post() also uses, but doesn’t call. The consequence of this is that the destination URL doesn’t get pushed to the right key (because the prefix isn’t properly fetched).
Forum: Fixing WordPress
In reply to: Date for all posts showing as Jan 1 2013I’m not sure, I find this strange.
Have you tried pulling the date from the $post object manually?
$post->post_dateForum: Fixing WordPress
In reply to: Date for all posts showing as Jan 1 2013Can you include the loop aswell in your code? I have the feeling that get_the_date() is stuck on the first instance, showing that date for each following instance.
Forum: Fixing WordPress
In reply to: Translating the_date() and the_time() in frenchThe rule of thumb is never to alter a WP core.
Besides, I translated a site four years ago and I updated WordPress many times ever since, meaning /wp-includes was overwritten with a new version during each WordPress update.I think you hit it right on as to why you shouldn’t alter the core. It wrecks the maintainability and evolutivity of the installation, since you can no longer update it without losing what new code you’ve introduced.
In my case, I know that the scope of this website is no longer than a year to 2 years and WordPress won’t be updated in the interim.
More to the point…
I thought that the .po file was only used to generate the .mo file, does WordPress use the .po file directly?Forum: Fixing WordPress
In reply to: Translating the_date() and the_time() in frenchBut given a full date or time returned by the_time (or in this case, get_the_time), you couldn’t possibly register all possible dates and time for it to be translated by _e().
_e() and __e() are used when it’s static strings, where you can register those string confident that they won’t change very often (such as every day, etc.)
I’m fairly certain that the_time() has a localization engine contained within itself, or so the other websites seem to suggest…
Forum: Fixing WordPress
In reply to: Trying to grab top-2-level pages without affecting The LoopResolved: Problem was not with get_pages() but my child call was using query_posts, which seems to reset The Loop.
Forum: Plugins
In reply to: Wordbook – Specify a category to post on FBAs far as I know, this isn’t yet possible. As of 0.16.3, selecting what posts to push to facebook is a possible feature for future version, however, not so much by filtering by categories as having to manually specify not to push to facebook for every individual post.