| bio | website | |
|---|---|---|
| location | San Francisco | |
| age | ||
| visits | member for | 2 years, 1 month |
| seen | 5 hours ago | |
| stats | profile views | 723 |
yay
|
Apr 9 |
answered | pagination for a custom loop with multiple post types |
|
Apr 9 |
comment |
pagination for a custom loop with multiple post types is this the main query on your home page? |
|
Apr 8 |
answered | Why is this page using the homepage template and not the one it should? |
|
Apr 8 |
answered | why does add_rewrite_rule refresh and loose url variables |
|
Apr 7 |
comment |
Hook or function to upload media via url you insert the post which gives you back the post id, then add the image which gives you attachment id, then set post thumbnail using post and image ids. |
|
Apr 7 |
comment |
Hook or function to upload media via url presumably you've got some sort of form submission happening? how are you handling the process of submitting a URL? you could simply put it in a page template for testing purposes. |
|
Apr 7 |
answered | Upload unnattached image from frontend |
|
Apr 7 |
comment |
Hook or function to upload media via url $post_id is the ID of the post you want to attach the file to and is required. if you're not attaching the file to a post, use wp_handle_sideload. |
|
Apr 7 |
comment |
Move specific javascript to the footer it is not expected or a requirement for javascript to be in the header. the wp_enqueue_script function has an option for placing js in the footer and any properly coded theme or plugin should be able to function correctly in this case. |
|
Apr 7 |
comment |
Move specific javascript to the footer please edit your question and add the code you are using to accomplish this. also give some specific examples of what plugins break by doing this. |
|
Apr 6 |
comment |
Shortcodes can only be used in Pages, not Posts @FrederickAndersen after $sponsors_query = new WP_Query( $args );. do the shortcodes that work query the database? |
|
Apr 6 |
answered | When would I use either function for plugins? |
|
Apr 6 |
comment |
Shortcodes can only be used in Pages, not Posts @FrederickAndersen - I'd guess there's something in your theme that indiscriminately alters queries on the front page. Check the query vars after the query via <pre> <?php print_r($sponsors_query); ?> </pre> to see the query sent to the database, compare them between a page that works and the front page. |
|
Apr 6 |
comment |
Shortcodes can only be used in Pages, not Posts @FrederickAndersen - are you sure the front page template calls the header file you've put this in? |
|
Apr 6 |
comment |
Shortcodes can only be used in Pages, not Posts if you look at the blog in blog code, you'll see it checks is_page(), so anything not explicitly a page will return that error (home, front page, an archive, a tag, a category, etc..). however, if you're doing this by editing a template, it somewhat defeats the purpose of using a shortcode. just skip the whole plugin thing and query for what you want directly via WP_Query and output it yourself. |
|
Apr 6 |
comment |
Add category base to url in custom post type/taxonomy also note you'll likely have a clash with a taxonomy and a post type both sharing the same slug. |
|
Apr 6 |
comment |
Add category base to url in custom post type/taxonomy you have to flush rewrites, visit the permalinks settings page. |
|
Apr 6 |
answered | Add category base to url in custom post type/taxonomy |
|
Apr 6 |
answered | Ordering stylesheet above <style> using functions.php |
|
Apr 6 |
comment |
Custom field to Rich Text Area if your shortcode is always appearing on top, it's because you incorrectly echo or directly print the content instead of returning it. look closely at the shortcode example in codex. |