| bio | website | kovshenin.com |
|---|---|---|
| location | Russia | |
| age | ||
| visits | member for | 2 years, 7 months |
| seen | 7 mins ago | |
| stats | profile views | 59 |
|
Mar 13 |
comment |
Retrieving custom field value with get_post? Also, when fetching with get_posts, WP_Query, etc, all meta fields and taxonomies are usually prefetched and cached, so each call to get_post_meta will be server from cache rather than hitting the db. |
|
Mar 13 |
answered | How to remove slug metabox from custom post type's page? |
|
Mar 13 |
answered | Plotting posts on a graph |
|
Dec 10 |
comment |
Missed scheduled WordPress -10000 for hacking core. Don't hack core, even if you find no other solution (which is highly unlikely) |
|
Oct 19 |
awarded | Yearling |
|
Oct 16 |
answered | shortcodes output before content |
|
Oct 16 |
answered | WP_Query() returns null when results exist! |
|
Oct 16 |
answered | Remove social media sharing buttons on a download page |
|
Oct 16 |
comment |
Why is the `if else` not working? Try to replace your first elseif statement with elseif ( false ) ... and see if you ever reach your second one. You should also paste the code for your custom is_category_or_sub function. |
|
Oct 16 |
answered | documentation on arguements? |
|
Oct 16 |
comment |
WP_Query() returns null when results exist!get_the_date grabs that data from your main query (the $wp_query global) but you're looping through your secondary query in $blog. Try and print_r the $blog object and see if it contains any results. If it does, you should also post the content of your excerpt.php file. |
|
Oct 15 |
answered | How to allow — in category name |
|
Oct 15 |
comment |
Sort posts by custom taxonomy name Good answer, though you should watch your indentation ;) |
|
Oct 15 |
answered | How to display numbered pages in a category |
|
Oct 11 |
comment |
How To Determine If A Filter Is Called In A Sidebar/Widget Context?is_main_query does not care which place it's being called from. It checks whether the $wp_query global is running the $wp_the_query global and returns true if they're equal. You can apply the same theory to other conditional tags. |
|
Oct 11 |
comment |
Query Posts in a Predefined Order @Imran, if you indeed need a secondary loop, then new WP_Query or get_posts will work best. posts_orderby gets called on every query. As Stephen suggested, you can add the filter before running your query and remove it soon after. |
|
Oct 10 |
revised |
Query Posts in a Predefined Order added a couple of tags, more descriptive title |
|
Oct 10 |
suggested | suggested edit on Query Posts in a Predefined Order |
|
Oct 10 |
comment |
Query Posts in a Predefined Order Huh? How exactly is [0] => 17983, ... different from array( 17983, ... ) :) The former is just a print_r of the latter. |
|
Oct 10 |
comment |
Query Posts in a Predefined Order Oh, and you can use the php implode function to convert your array into a comma-separated list of IDs which you can use in that FIELD query :) |