Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter David Keevis

    (@upstaterider)

    Thanks iSaumya. I really meant to say is I’ll be doing some comparison tests to see what, if any, advantage I gain from APO. I really like a lot of the features of Super Page tho – so nicely put together.

    Thread Starter David Keevis

    (@upstaterider)

    Thanks. I went with the return variable. And worked with the WP_Term object, extracting the tax description from it. Got exactly what I needed and appreciate you getting me pointed in the right direction.

    Thread Starter David Keevis

    (@upstaterider)

    Finally got a shortcode working that does part of what I’d like.

    add_shortcode( 'tax_description', function() {
     ob_start(); 
    $taxonomy = 'your-custom-tax'; // Replace 'your-custom-tax' with the actual taxonomy slug 
    
    // Get the taxonomy object 
    $taxonomy_object = get_taxonomy($taxonomy); 
    
    // Get the taxonomy description 
    $taxonomy_description = $taxonomy_object->description;
    
     // Output the taxonomy description echo $taxonomy_description; 
    return ob_get_clean();
    } );

    What I’d like to do is dynamically fetch & pass the argument ‘your-custom-tax’ from the taxonomy of the current archive being displayed.

    Thanks so much.

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