why ignore_sticky_posts in sticky post query
We all know that ignore_sticky_posts is used to exclude sticky post from your custom query.
We all know that ignore_sticky_posts is used to exclude sticky post from your custom query.
At the risk of sounding completely ridiculous, I’m posting this question here as the nature of my query doesn’t seem to help me much from google.
I need next and previous post links in a single post page using a “page-builder” type of CMS—specifically the DIVI theme by Elegant Themes. So, I need the links to be able to appear using Shortcodes, as the controls in the template, along with a lot of the default template stuff, are hidden when you use the page builder. AND, my client needs to be able to manipulate where in the page layout the next/previous post controls appear, depending on the post type, as it’s a portfolio site and “sculptures” get treated with a different layout than “paintings”, if that makes sense.
Most people are aware that minimizing the number of plugins used is a good way to help keep a WordPress site running fast. However, does that general rule include deactivated plugins?
Since yesterday the wp_scheduled_auto_draft_delete cron job somehow deletes all page entries from our menus. All entries in the table wp_postmeta with meta_key = '_menu_item_object' and meta_value = 'page' get deleted in the process. By tracing back the DELETE query I found out that the menu entries are deleted by a function called _wp_delete_post_menu_item. I got the following stacktrace for that function:
The add_menu_page documentation says to pass the menu title as the second parameter:
I have a page with two sections, each uses a different WP_Query() to pull in events, which are a custom post type. Each WP_Query() queries a meta_key for the event date so that Section 1 only displays upcoming events and Section 2 displays past events.
I have taken it upon myself to adhere to WordPress conventions so I can have a clean, sexy child theme. However, I am unsure how to proceed on a certain issue.
What is the use of map_meta_cap filter? This filter is not documented anywhere. I have an unclear idea of what it could be:
(note: this question was originally about Custom Fields, but @MikeSchinkel had a better solution involving Custom Post Types)