Simple shortcode to check if a user has commented on a certain post

You made 2 small errors. First of all: Shortcode-Functions receive a maximum of 2 parameters: $attributes and $content. $attributes is an array of all the attributes within the shortcode, like [shortcode post_id=123] the attribute post_id will end up in the $attributes array as $attributes[‘post_id’]. $content has the content between the opening and the closing shortcode … Read more

How to change Post title background size?

Your theme is adding a large amount of padding to the .single-post__featured-img–layout-1 class: 100px top and bottom, or 180px for screens wider than 1025px. Look in https://eric.frydendal.org/wp-content/themes/blockst/style.css Try Css code .single-post__featured-img–layout-1 { padding: 20px 0px; }

sub posts to parent post

WordPress posts are non-hierarchical and therefore cannot have child posts Most likely the model in question has a hierarchical category(taxonamy) associated with it. EG: Country > Technology type > product type > model Using the catagories like this will give you the required url structure once you assign a pretty permalink structure http://codex.wordpress.org/Introduction_to_Blogging#Pretty_Permalinks

how to change background color of my all post

Add this code to your themes functions.php function post_color_get_meta( $value ) { global $post; $field = get_post_meta( $post->ID, $value, true ); if ( ! empty( $field ) ) { return is_array( $field ) ? stripslashes_deep( $field ) : stripslashes( wp_kses_decode_entities( $field ) ); } else { return false; } } function post_color_add_meta_box() { add_meta_box( ‘post_color-post-color’, … Read more