remove author and date from all posts [closed]

For those who have the same issue, I solved it by doing the following: Within Apparence -> Customize -> Blog Post Options -> uncheck “post Date” uncheck “post Author” These settings, removed the author and date from the post. Then, commenting the following line from single.php /*$cmsms_post_author_box = get_post_meta(get_the_ID(), ‘cmsms_post_author_box’, true);*/ And then, I’ve changed … Read more

Display ACF field only if value is greater than 0

I see you’ve found your own answer, but I wanted to offer some advice for making your code a little more succinct. <?php // Different versions of a number $unformatted = get_field(‘paid_attendance’); $cleaned = str_replace(‘,’, ”, $unformatted); // Remove commas from string $integerValue = absint( $cleaned ); // Convert to absolute integer. $floatValue = number_format($cleaned, … Read more

WordPress not syncing with FTP

I think that there is an issue with the filesize upload limit. The size should be below 30M. Follow these steps: Find your php.ini file. Use the following line: post_max_size = 8M upload_max_filesize = 2M If you can’t get to your php.ini file, you can change the filesize upload limit with this plugin.

Print the associated categories of the current post starting with parent (with option to remove href)

Here is code snippet from WordPress that display the categories (or terms from other taxonomies) assigned to a post ordered by parent-child category relationship.This example must be used inside the loop. $taxonomy = ‘category’; // Get the term IDs assigned to post. $post_terms = wp_get_object_terms( $post->ID, $taxonomy, array( ‘fields’ => ‘ids’ ) ); // Separator … Read more