The Difference Between Categories and Tags and Taxonomies and Terms

I was under the impression you can’t have categories and tags on custom post types? You can have categories and tags on custom post types! But I can’t see how Taxonomies and Terms are the same? But they are the same, Categories are a taxonomy, as are post tags, they’re stored in the database the … Read more

Getting post attchment URL to populate a CPT Admin Page Column

The File field’s documentation has some options you can try, but here’s an example if your field’s Return Value is array, where you can use $gradingForm[‘url’] to get the attachment URL: $gradingForm = get_field( ‘grading_form’, $post_id ); echo $gradingForm ? ‘<a href=”‘ . esc_url( $gradingForm[‘url’] ) . ‘”>Grading Form</a>’ : ‘N/A’; And the proper way … Read more

Modify gform_other_choice_value for specific form and specific field in Gravity Forms

The second parameter is the field which contains the form ID to which it belongs and its own ID so you can target a specific form/field like so: add_filter( ‘gform_other_choice_value’, function( $placeholder, $field ) { // Update “123” to your form ID and “4” to your field ID. if ( $field->formId == 123 && $field->id … Read more

How to display comments length

I used this: function wpb_countx() { wp_enqueue_script(‘jquery’); ?> <script> jQuery(function($) { // configure var comment_input = $( ‘#commentform textarea’ ); var submit_button = $( ‘#commentform .form-submit’ ); var comment_limit_chars = 1400; // stop editing here // display how many characters are left $( ‘<div class=”comment_limit_info”><span>’ + comment_limit_chars + ‘</span> zbývá znaků</div>’ ).insertAfter( comment_input ); comment_input.bind( … Read more