• Is there somewhere I am supposed to “enable” permalinks?

    I can’t find it anywhere..

    Here’s my PHP loop:

    <?php
    $posts = get_posts('numberposts=10&order=DSC&orderby=post_title');
    foreach ($posts as $post) : setup_postdata( $post ); ?>
    <?php echo "<h2 font-family: 'Open Sans', sans-serif;>"; the_title(); echo "</h2>"; ?>
        <?php {the_excerpt();}?>
    <?php echo '<em style="font-size:15px;"> Written on '; the_date(); echo "
    
    "; ?>
    <?php
    endforeach;
    ?>

    But, if you check my site, you will see while I managed to get a Read More link working, it just adds “/?p={post id}” to the URL and doesn’t change the result.

    My loop doesn’t appear to tell it to do that, but I can’t find a specific place that describes how to do this should-be-basic task.

    Can someone help here? Is there something obvious I’m missing?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • hii u have use the_excerpt() function that’s return content with read more options.

    if u want to remove this or change permalink url so follow steps .

    wp-admin -> settings-> permalink -> then set u want (Post name)etc.

    Customizing the Read More

    Thread Starter etechgeek24

    (@etechgeek24)

    I’ve already read through that link and it didn’t help much. I don’t think that’s what I’m looking for.

    The point I define the Read More tag is OK. And I’m fine with the format of the permalink. But when a user clicks that link with the PHP loop I posted above, they don’t get access to the full story. They just aren’t redirected anywhere and stay where they are.

    In other words, when the user clicks the permalink to a post, nothing happens at all. It just changes the URL (desired) but doesn’t redirect the user to the post (not desired).

    I tried changing the permalink’s format, but that didn’t fix it.

    See my website https://etekweb.net/blog and you’ll know what I mean.

    @etechgeek24 there have something wrong use after click single.php have not called.
    without code check i can’t say to easy whats is issue on blog.

    Thread Starter etechgeek24

    (@etechgeek24)

    Which code do you need? My wordpress loop is in an above post

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks with WordPress on custom site’ is closed to new replies.