New answers tagged

1

Assuming that the hook you have used is correct; below is the updated code which you can use: function custom_listify_single_job_listing_actions_after() { global $post; if( $post->ID == 1464 ) { $url = get_post_meta( $post->ID, 'your_custom_meta_key', true ); echo '<a href="' . esc_url( $url ) . '" class="button">My ...


-1

maybe try <?php instead of <? in your lines of code, not sure but I understand that this can cause problems. or use <?php echo $post->post_content; ?> and try without 'Read More' means only <?php the_content(); ?>


1

echo $post->post_content; will echo your post content. Keep in mind though, it's raw out of the database (same as get_the_content()). If you want to apply the same filters that the_content() receives, follow the instructions in the codex: <?php $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); ...


1

Try this, home it will work properly. just replace 'taxonomy' with your taxonomy and post type in wp_query. <?php $categories = get_terms('taxonomy', array('orderby'=>'name','hide_empty' => 0)); foreach( $categories as $category){ $category_link = get_category_link($category->ID); $args = array('post_type' => 'post', ...



Top 50 recent answers are included