Issues with Saving Dynamic Metabox

I too have come across this strange issue, I am not sure why $post_id doesn’t contain the post id. Please try the below snippet and this would work Use the global $post and use $post->ID in update_post_meta add_action( ‘save_post’, ‘save_TodoList’ ); /* When the post is saved, saves our custom data */ function save_TodoList() { … Read more

wpalchemy repeating fields dropdown issue

I changed the code to loop through all pages, instead of using wp_dropdown_pages() function. Following is the new code <?php while($mb->have_fields_and_multi(‘col2-project’)): ?> <?php $mb->the_group_open(); ?> <p> <span>Select Project</span> <?php $mb->the_field(‘project-id-2’); ?> <select name=”<?php $mb->the_name(); ?>”> <option value=””>None</option> <?php global $thispost; $myposts = get_pages(‘post_type=portfolio&post_status=publish’); foreach($myposts as $thispost) : ?> <option value=”<?php echo $thispost->ID; ?>” <?php $mb->the_select_state($thispost->ID);?> … Read more

Installing plugins on installation/activation

Yes, though its slightly complicated by this bug, which I discuss on this post (original: http://stephenharris.info/deactivate-other-plug-ins-on-deactivation/) They actually handle deactivating, rather than activating, but the principles are the same. At time of writing that trac ticket has a patch committed for 3.7. The following should activate ‘B’ when ‘A’ is activated: //This all goes inside … Read more

How to remove featured images from posts

Use Developer tools in Google Chrome and see what section is responsible for displaying the featured image on post page. Open page.php or single.php (relevant file responsible for generating single page) and delete that code. Keep a backup of the file before making any changes 🙂

How to set up wp multisite?

If you have your network sites allowed to install in subdomain like abc.hgd.com then you need to setup the Wild card DNS setting. I think that could be creating the problem for you and redirecting you to the 404 error page. Can you please let me know thw steps you followed to setup your multisite … Read more