Frontend posting – everything saves other than checkboxes?

Did you check the database for the data? My guess is that the problem is here: echo ‘<input type=”checkbox” name=”cbn[]” id=”‘.$option[‘value’].'”‘,$checkboxes && in_array($option[‘value’], $checkboxes) ? ‘ checked=”checked”‘ : ”,’ /> ‘; should be: echo ‘<input type=”checkbox” name=”cbn[]” id=”‘.$option[‘value’].'”‘.$checkboxes && in_array($option[‘value’], $checkboxes) ? ‘ checked=”checked”‘ : ”.’ /> ‘; Edit: You’re confusing poor PHP. Try enclosing … Read more

Pagination on Custom Post Type: 404 Error

While pre_get_posts is a much better solution for modifying the parameters for the archive main query for specific conditions like Custom Post Types, as Milo and helgatheviking mentioned, trying to use a custom query to override the main query for an archive is overcomplicating the issue. Since I’m building a custom Tumblr like gallery template … Read more

Taxonomy Templates

According to the Codex: taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php What I do when using custom taxonomy/custom post types is exactly what you mentioned in the second sentence. Make a page template and a page in the back end. Choose the template you built as the template to use … Read more

How to Display ACF Relationship Custom Field as Link to Specific Custom Post?

Finaly, I make this working. I put this in my template: <?php $contacts = get_field(‘list_supplier’); ?> <?php if( $contacts ): ?> <?php foreach( $contacts as $contact ): ?> <a href=”https://wordpress.stackexchange.com/questions/118817/<?php echo get_permalink( $contact->ID ); ?>” target=”blank”><?php echo get_the_title( $contact->ID ); ?></a> <?php endforeach; ?> <?php endif; ?> And here is the filter I am using … Read more