Call to undefined method – Download Monitor

It appears the issue was mostly with scope. In this case the following was needed to get the post ID: php $download->post->ID I then was able to get my meta value by using the following: php $active_sub_status = get_post_meta( $download->post->ID , ‘_act_sub’, true );

Creating a post from data returned from HTML form

I worked it out and re-wrote the code: jQuery(document).ready(function() { jQuery(‘#createacostume’).submit(function( event ) { event.preventDefault(); var aForm = jQuery(this); var bForm = aForm.serializeArray(); bForm.push({name: ‘action’, value: ‘myAjaxFunction’}); jQuery.ajax({ url: ajaxurl, type: “POST”, data: bForm, success: function(resp) { alert(“Thank you for your post. We will review it and approve it shortly” + resp); }, error: function( … Read more

Website needs to be opened for wp_mail to work

This plugin uses WordPress CRON API. Its no the same thing as usual CRON jobs available at cPanel dashboard. The difference is in the way how they are executed. When somebody visits your site, WordPress checks if there is a scheduled job which has to be run, then WordPress runs this job by initiating a … Read more

WordPress and Conditions

What you might be looking for here is the elseif statement… <?php if ( in_category(‘123’) ) { ?> <div class=”pdfbox”> <h1><a href=”https://wordpress.stackexchange.com/questions/116680/<?php the_permalink(); ?>”><?php the_title(); ?></a></h1> <p>&nbsp;</p> <a href=”https://wordpress.stackexchange.com/questions/116680/<?php the_permalink(); ?>”><?php the_post_thumbnail(‘pdfs’); ?></a> </div> <?php } elseif ( in_category(‘125’) ) { ?> <div class=”pdfbox”> <h1><a href=”https://wordpress.stackexchange.com/questions/116680/<?php the_permalink(); ?>”><?php the_title(); ?></a></h1> <p>&nbsp;</p> <a href=”https://wordpress.stackexchange.com/questions/116680/<?php the_permalink(); ?>”><?php … Read more