How to align buttons properly [closed]

first things first lets improve your code: function action_after_question_content() { if (!is_single()) { echo “<a class=”button-default” href=””.esc_url( get_the_permalink() ).”#comments”>See Answers</a>”; echo “<a class=”meta-answer” href=””.esc_url( get_the_permalink() ).”#respond”>Give Answer</a>”; } } Note: We can improve further by getting the numbers of comments, and based on that build the buttons: Ex: If we have a plural numbers of … Read more

Is there a way to get wp_editor (tinymce) content?

I can’t comment yet… so I will use an answer, I think you need to do it with ‘wp_insert_post_data’ filter. You can see this in line 3523 here: https://developer.wordpress.org/reference/functions/wp_insert_post/ Your function need to have a parameter, which is an array. From there you should get the content from ‘post_content’ key. add_filter( ‘wp_insert_post_data’, ‘example’ ); function … Read more

How do loop categories post from according in WordPress? is it impossible to solve this problem?

Thanks all for help here the link about solved it bcworkz (@bcworkz) 37 minutes ago There are two issues I see. $cat_array is an array of IDs, not objects, so the ‘cat’ query arg should just be ‘cat’ => $cat, The other is when you use setup_postdata( $post ), you must explicitly declare global $post;