Custom archives page by month and year – nesting problem

After much more work, I developed a solution that outputs archives by year, month and day while minimising database calls. Posting it here for others to use: //* Add custom archives below entry content add_action( ‘genesis_entry_content’, ‘custom_archives_page_content’ ); function custom_archives_page_content() { global $post; // set post arguments $args = array( ‘posts_per_page’ => -1, ‘orderby’ => … Read more

PM PRO addon package check user access to a specific post

Got the answer figured out,dont know exactly what was wrong but just entered the ID( i.e 376) in each section instead of $post_id[0] array. Would be glad to know if something was wrong in the code I posted in my question. Thanks EDIT Was using $post_id[] = array(361,369,367,371,476); instead of $post_id = array(361,369,367,371,476);

Simple Share Buttons Add Plugin and Custom Post Type

Here is the solution : You need to hook an action to remove ssba button. Wp action runs pretty early and allow you to remove the ssba filter on the content which add the buttons list. function remove_share_buttons_custom_post() { if (in_array(get_post_type(),array(‘sar’))) { remove_filter( ‘the_content’, ‘show_share_buttons’); } } add_action(‘wp’, ‘remove_share_buttons_custom_post’);

Query wordpress posts on static page

By static page do you mean a WP page or do you mean a HTML page within the site? If it’s the first you need a page template, if it’s the latter then you need to include wp-blog-header.php into the file with php.

How to add google map to custom field

It looks like you’re missing some code according to the ACF docs – see example under “Required CSS & JS” – http://www.advancedcustomfields.com/resources/google-map/ Sadly – this page of the ACF documentation may be out of date. According to google maps API docs – you’ll need to create an API key for all their APIs (Embed, JS, … Read more

Full width images within post content

I believe you’ll want to set the image as a background image on the div (with inline CSS). In your template’s PHP you can use the following to get the URL to the full-sized featured image (within the Loop, of course): $image_url = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); Then to assign this image as the … Read more