Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: shortcode parameters documentation #34511
    Ushan
    Participant

    Can I ask a question here? I am constructing this shortcode to show the owners posts in a category eg gardens. But am returning no posts. Does this syntax look right?

    [wp_show_posts id=”1234″ settings=”author=1&taxonomy=category&tax_term=gardens”]

    Could I include 2 categories with:

    [wp_show_posts id=”1234″ settings=”author=1&taxonomy=category&tax_term=gardens,homes”]

    in reply to: Archive post hook for related posts #32964
    Ushan
    Participant

    No probs. Thank you!

    in reply to: ACF fields in a blog category archive post output #30817
    Ushan
    Participant

    As per Tom’s answer somewhere else (sorry!) – this got it working.

    add_action( ‘wpsp_after_title’, function( $settings ) {
    if ( 321 === $settings[‘list_id’] ) {
    $meta = get_post_meta( get_the_ID(), ‘field-name’, true );

    if ( $meta ) {
    echo $meta;
    }

    }
    } );

    Where 321 is the Show Posts list id. I was getting nowhere because I was putting the category ID in. 😀

Viewing 3 posts - 1 through 3 (of 3 total)