Forums

Give help. Get help.

  • # November 6, 2018 at 11:09 am

    It exports the shorter URL like. mysite.com/p-263
    I would like it to be the full URL I see in the backend. https://www.mysite.com/events/2019/01/11/kansas-reading/

    Note: I recently changed the permalinks to be more descriptive.

    Thanks

    <?php 
        $args = array(
        'post_status' => 'future',
        'order' => 'ASC',
        'cat' => 16
    );  
    
    $query = new WP_Query($args); 
    
      if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
    
     

    " rel="bookmark" title="Permanent Link to ">

    " rel="event" >Read More...
    <!-- closes the first div box --> <?php endwhile; wp_reset_postdata(); else : ?> <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p> <?php endif; ?>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag