Weird problem on if statement

there is no third parameter for get_field, may be causing your error. EDIT- In your current code, if the 10 most recent posts don’t contain a post with your meta key, you’ll see nothing since you’re only getting 10 posts and then filtering them. Any query that doesn’t specify number of posts defaults to your … Read more

Custom field with Types: get custom field’s value label (of type select)

Just so you know, and after much code sniffing, I finally have a working solution : First, the custom field may start with wpcf- (for example: wpcf-custom-field). This prefix may be ignored and only the remaining characters kept. As in $customField = substr($fieldName, 5); // $fieldName=”wpcf-custom-field”; Now, the custom field data may be fetch via … Read more

Simple Calendar

As @Vincius mentioned above, I don’t think anyone has created a full-blown calendar with ACF and ACF alone. But – that doesn’t mean you can’t plug into other Event Calendars (or –> attach the ACF data onto their Events post type). For example: Sugar Event Calendar It has a filter hooks (look on that page, … Read more

SQL query – get ids – Advanced Custom Fields / WPeC

Thanks for your help s_ha_dum, I had a look at the table structure using phpMyAdmin, ACF Plugin saves fields to the postmeta table, so sb_wpsc_meta needed to be changed to sb_postmeta. also needed to change what was being SELECT to post_id aswell as the meta_value to 1. final query; “SELECT post_id FROM sb_postmeta WHERE `meta_key` … Read more

Specific website content

You will want to register custom post types for each of the sections (books, articles, etc). Your post types should be registered as a custom plugin so that they can be kept in the case you decide to switch your theme. Custom post types: http://codex.wordpress.org/Post_Types WordPress plugin API: http://codex.wordpress.org/Plugin_API The advanced search is a bit … Read more