The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Loop not delivering full page URL in WordPress

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #278492

    It exports the shorter URL like.
    I would like it to be the full URL I see in the backend.

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


        $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" >
    <!-- 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; ?>

    In the WordPress backend, in Settings > Permalinks, there’s a setting called “Common Settings”. It sounds like you want something like the “Day and name” option. If that isn’t quite right, you can use the “Custom Structure” option further down to tweak the implementation. WordPress will generate permalinks based on that structure.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.