Forums

[resolved] move post links above the post on homepage and widget footer (6 posts)

  1. betts
    Member
    Posted 2 years ago #

    Hi all,

    I have a couple of issues, I am trying to solve for while.
    I am hoping you could help me out as googling and searching this forum hasn't quite helped me yet with this issue.

    I am trying to incorporate a sticky note design for my sidebar widgets. So far so good. No I struggle to attached the footer of the sticky note to an element.

    i was thinking i could create an empty
    li at the bottom (as last
    li) of my pages list and design it via a css class. Unfortunately, when ever I try and add any php or html to the file, it won't reflect on the live site.
    Any ideas what i am missing?

    Also, how can i change the links under the footer on the homepage?
    Instead of "Posted in Uncategorized | Edit | 1 Comment ยป" underneath the post I'd like to see the date, posted by, permalink abnd comment between the post heading and text.

    how do I move it and how do I add or remove the links needed?

    http://blog.betts.com.au/

    Thanks a bunch in advance!

  2. MAzCastro
    Member
    Posted 2 years ago #

    I'm not sure I understood what you need. To process PHP code in my sidebars I use the PHP-Exec plugin (http://wordpress.org/extend/plugins/exec-php/)

    Just install it and use a text widget with your PHP code in it, as if it was normal text.

    To modify your post meta data display you need to be able to edit your theme.

    Find the have_posts() while cycle, and add this between the title and the entry:

    <div class="meta">
    Published in <?php the_date() ?>
    . Under <?php the_category(' ') ?>
    . This article has <?php comments_number('no responses','one response','% responses'); ?>
    </div>

    MAC :)

  3. betts
    Member
    Posted 2 years ago #

    Hi Mac,

    thanks heaps for your reply!

    Re the first issue, I have solved that now. Thanks :)

    Re the have post:

    I have copied and pasted the code where you said: page.php

    I looks like this now:

    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2><?php the_title(); ?></h2>

    <!-- added to customise the post meta data -->

    <div class="meta">
    Published in <?php the_date() ?>
    . Under <?php the_category(' ') ?>
    . This article has <?php comments_number('no responses','one response','% responses'); ?>
    </div>

    <!-- END: added to customise the post meta data -->
    <div class="entry">

    When refreshing my blog after uploading the file nothing changes...

    Any idea why that is?

    Thanks again!

  4. betts
    Member
    Posted 2 years ago #

    On second thought, since I can't even see the new HTML comments in the refreshed blog source code, is it possible that once I try editing the php files in the editor in the WP admin area, FTP uploads don't work anymore? Does WordPress add restrictions like that to it's files?

  5. betts
    Member
    Posted 2 years ago #

    Doh! apologies. You weren't talking about page.php but index.php

    Got it working now!

    thanks a bunch!

  6. MAzCastro
    Member
    Posted 2 years ago #

    you're welcome!

    you can now close the topic if you have no more related questions.

    MAC :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags