• Resolved rogeriomariano2022

    (@rogerioflash)


    How do I pull web stories on my blog?

    I already tried webstories
    webstory
    story
    web stories…

    <?php
    $args = array(
    ‘post_type’ => ‘Web_Stories‘,
    ‘order’ => ‘DESC’,
    ‘posts_per_page’ => ‘3’,

    );
    $the_query = new WP_Query($args);
    ?>
    <?php if(have_posts()) : while ($the_query -> have_posts()) : $the_query -> the_post(); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rogeriomariano2022

    (@rogerioflash)

    I got it, the correct one is:
    ‘post_type’ => ‘web-story

    @rogerioflash Hi there, just checking in if you still need support.

    Thread Starter rogeriomariano2022

    (@rogerioflash)

    Luckyna how do i pull the category?
    I Tried:
    web_story_category
    category
    cat

    did not work.

    thank you so much

    Plugin Author Pascal Birchler

    (@swissspidy)

    web_story_category would be the correct taxonomy name, but please not that our taxonomies are not marked as public, so you won’t be able to retrieve them for things like public category archive URLs or the like.

    If you wanna do this, you could try using the register_taxonomy_args filter or registering your own taxonomy. And if you need help with that, I recommend asking in the general WordPress support forums or on StackOverflow.

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

The topic ‘[NSFW] Pull webstories page’ is closed to new replies.