| bio | website | moraleida.me |
|---|---|---|
| location | Rio de Janeiro, Brazil | |
| age | 29 | |
| visits | member for | 1 year, 9 months |
| seen | 2 days ago | |
| stats | profile views | 75 |
/**
* Handyman Developer - WordPress Enthusiast
* Website: http://moraleida.me
* Email: ricardo [ at ] moraleida.me
* Tweet me @moraleida
*
*
*/
|
Feb 25 |
comment |
Default Image Link Removal Sorry about that, I completely misread your answer... |
|
Feb 21 |
comment |
Default Image Link Removal Don't ever edit core files. The changes will be lost the minute you update WordPress. |
|
Nov 27 |
comment |
wp_update_post() doesn't update post_status? Right you are, brother @brasofilo. I'll post it here shortly. :) |
|
Oct 9 |
comment |
wp_update_post() doesn't update post_status? Yes, i'm doing it as an network admin, and also as a "custom" user role. |
|
Oct 8 |
comment |
wp_update_post() doesn't update post_status? Ok, this just in: if I strip out the post_status before updating the post, it then gets reverted to draft and still appears in the admin panel as scheduled. So it works, but that still doesn't answer why I can't revert it to future. |
|
Oct 8 |
comment |
wp_update_post() doesn't update post_status? post date gets updated, but post status doesn't. So if I publish a post today, and then set it to future with a date three days from today, the date gets changed, but post_status is still publish, instead of future |
|
Aug 30 |
comment |
PSD to WordPress using Thesis Theme If you've done 20+ before, this sounds like a good moment to ask yourself: why not do it from scratch this time? It would certainly help you answer your own question. :) |
|
Aug 30 |
comment |
Search ONLY by meta key / meta values The str_replace idea worked with some adjustments, will post on the question. As a follow up on performance: do you think altering the main query with posts_where is really slower than doing a direct SQL Query + a regular WP_Query as you suggested in A)? |
|
Aug 6 |
comment |
Editing footer for one page, keeping it the same for others Example: codex.wordpress.org/Function_Reference/… |
|
Aug 6 |
comment |
Editing footer for one page, keeping it the same for others Yes. Same file. However, if changes are too large, you might just want to load different files, so instead of calling get_footer() on index.php and testing if it's the home page from inside the footer.php you can make a differente footer-home.php file and use get_footer('home'); whenever you want to call it. |
|
Aug 6 |
comment |
Editing footer for one page, keeping it the same for others Check the example. The part between the first and second PHP tags is only rendered on the home page. The part between the second and third PHP tags is rendered on any other pages. |
|
Jul 26 |
comment |
WP_Query do not include posts with a certain value in a custom field - I'd missed the quotes around 'numeric', fixed now. Was that it? |
|
Jul 25 |
comment |
Slugs Disappeared Leaving 404s - Quick way to repopulate? Have you tried flushing your permalinks? Just go to Settings -> Permalinks and save the page. |
|
Jun 14 |
comment |
Error after moving WordPress installation is your new site loading from coachhousetimbers.com.au/old/ ? That's where WP is looking... |
|
Jun 11 |
comment |
handling the featured category This is not a problem with WordPress itself, since it doesn't ship with any "featured posts" functionality out of the box (except for sticky), so I guess your theme's author has built it and you're having trouble dealing with what he/she built. Now, there are solutions for that, but they depend on how your theme deals with the featured posts. If you care to link to your site or give any more info, that'll be useful to help you out. |
|
Jun 10 |
comment |
Passing values by form to create a query you can use $childterm = '' instead of 'defaultChild' for that, so that the query will bypass the empty positions on the array. |
|
Jun 10 |
comment |
Upgrade wordpress core programmatically with PHP Why would you want to install a plugin that does something WP already does out of the box? |
|
Jun 9 |
comment |
How do I use wp_query for WordPress search? About the code usage, it depends on what really you need to achieve. Try it out with one custom field as is. If it works, then just add another 4 of the array('key' => 'field_to_seach', 'value' => $thesearch, 'compare' => 'IN') parts. Drop in if you need more help. |
|
Jun 9 |
comment |
How do I use wp_query for WordPress search? I wasn't talking about you @3ph, not to worry :). |
|
Jun 9 |
comment |
How do I use wp_query for WordPress search? Someone down voted this and I'd really like to know why, since this is something I use on a regular basis. If you care to explain, I appreciate it. :) |