See the change of get_permalink
to the_permalink
This might work for you.
<?php
$args = array( 'numberposts' => 5, 'order'=> 'ASC', 'orderby' => 'date' );
$postslist = get_posts( $args );
foreach ($postslist as $post) : setup_postdata($post); ?>
<div class="single_post">
<h3><?php the_date(); ?></h3>
<h3>
<a href="https://wordpress.stackexchange.com/questions/109174/<?php the_permalink();?>">
<?php the_title(); ?>
</a>
</h3>
<?php the_excerpt(); ?>
</div>
<?php endforeach; ?>
Related Posts:
- How to detect single.php (but not single-portfolio.php)?
- Custom Single Post By Category
- Using single.php from plugin folder instead of default template folder
- Custom permalink structure only for default posts
- Related Posts by Multiple Tags?
- How do I create a link that will always show the latest post?
- Post X of Y in single.php / sidebar.php
- HTML code in Custom field
- How to have different content in the loop and single
- Single.php Active Category Class
- How to add shortcode tags in single.php [closed]
- get_terms parent for current product only
- custom single.php not working
- How to display different single post template based on author?
- how load content as pop-up using ajax
- Disable single post page
- how to know if the post has pagination () or not
- Remove arrows from previous and next link
- “next_posts_link” and “previous_posts_link” display me NOTHING
- How to disable single post view in wp
- Custom Post Templates
- Add code just after Post content
- Pagination on single post page?
- Restrict post navigation to current sub menu
- Can’t get the_content of the parent page from its single post?
- Show all posts in sidebar in single.php
- How to show single post page as home page
- Using wp_list_categories like the the_category (showing just current categories of a post)
- How can I make a post that belongs to a category or have specific tags, display different from the other single posts?
- Display all posts that were published before full post on single.php
- Add Read More Tag to a post content (Single.php)
- If in_category not working for multiple single.php pages
- Single.php – Get Current Parent Category
- Insert sometext after first h3 in content
- Thumbnail Image to go in the post aswell
- Add get_the_tags() to Single Posts section via functions.php
- Is it possible to customize the post according to post format in single.php?
- Multiple comment forms on a single page
- Post type no single page
- Single Post in Tab/Slider
- Defined function isn’t showed on page
- get_previous_post() while accounting for sticky posts
- wp-link-pages in header and footer of the post
- Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
- Attachment image single page
- Nest Next and Previous in a href with class that has a background image
- Making a wordpress page print friendly
- WordPress single.php different layouts projects / posts
- Can I style single post that are in multiple catergories?
- “Home” Page now only displaying the single latest post
- How to save template data into wp_post table (post_content column)
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- How do I change the template specifically for single posts?
- Show single post child category from a determined parent
- out of nowhere
- WP posts using index.php instead of single.php
- Single post shows post three times
- How do I check if a post is password protected?
- display multiple posts and posts content on a single URL
- Pagination for single post
- Get the category of post
- Only show related posts when another post has same term
- List posts of assigned categories in list of all categories on single.php
- Is possible to do this from function.php
- Custom Single Post Type not referring to single-post-type.php File
- Hide Certain Tags on Single Post Page
- Thumbnail With Next/Prev Links Not Showing Next Post?
- Add wp-link-pages to post
- Pagination and Related Posts
- Get current post’s child page?
- 1 post, 2 templates
- Wrap div-tag around posts in page
- Insert Shortcode exactly at the end of the content
- WordPress More tag doesn’t work on Single post
- No matching template found when using single.php
- how show post date for specific post?
- Show Next/Previous without Link
- Stop WP from creating “Sample Page” and “Hello World!” post
- Show post titles only on the homepage
- Get all Youtube video’s from posts and embed them on a different page
- How to delete old posts’ edits to save space?
- When trashing a post, also trash related comments
- Image Insert into posts and pages not working after 3.2.1 update
- Blog Posts not showing title
- Display post category in foreach loop with category link
- How to Link to all posts that have the Standard Post Format
- WordPress custom post type with folder structure in slug
- wpColorPicker – problem with implementation to post meta
- How to group only VISIBLE posts? [closed]
- wordpress posts template remove default template from menu
- Show custom post with custom categories with specific slug
- separate the post of a category by subcategory
- Limit front-end submitted posts by role
- How to add a block to a category page?
- wordpress display posts by terms id or name
- Maximum number of posts per page before affecting performance?
- Display post order ranking within wordpress loop
- Custom Taxonomy From Database
- Query post by meta key of another table
- How to get if category has posts?