WordPress.org

Ready to get started?Download WordPress

Forums

Simple question from newbie abt ID for post (11 posts)

  1. djoseph05
    Member
    Posted 5 years ago #

    If someone would be kind enough to start me off with a few elementary instructions, I think I can go from there.

    I am brand new to WordPress and I only added a few posts to try it out. I installed the plugin Inline Posts 2.1.2.g that allows you to add a post to a page. Its instructions say to add the post ID to the page where you want it, like so: nnn

    My question: Where in the world do you find the post ID? And can you please give me a simple clear example of the specific code, and at what screen I enter it?

    I am not familiar with php either, but from a past experience with an online shopping cart I should be able to work with it, if you can start me off.

    Thanks in advance!

    djoseph

  2. djoseph05
    Member
    Posted 5 years ago #

    To clarify my question in this post:

    ...Its instructions say to add the post ID to the page where you want it, like so: "nnn" (after I posted my question it did not show the double brackets surrounding the "nnn")

  3. t31os
    Member
    Posted 5 years ago #

    When you view the post, look at the URL...

    http://yoursite.com/?p=13

    Would be an example, 13 being the ID...

    Or look at the link when editing...

    http://yoursite.com/wp-admin/post.php?action=edit&post=13

    The ID would again be 13 in this example.

  4. t31os
    Member
    Posted 5 years ago #

    Might be helpful if you can link to the particular plugin, and perhaps paste the instructions given if need be...

  5. djoseph05
    Member
    Posted 5 years ago #

    Thank you t31os. I did that and it worked, but now I see the next problem: My post title 'Only God Can Move the Sun' is immediately followed by the date information, looks like this:

    Only God Can Move the SunLast modified on 2009-04-19 07:44:25 GMT. 0 comments. Top. Edit topic.

    How do I separate them?

    Thanks again.

  6. t31os
    Member
    Posted 5 years ago #

    Edit the necessary template file...

    Each theme uses template files.. some use more then others..

    http://codex.wordpress.org/Stepping_Into_Templates
    http://codex.wordpress.org/Template_Hierarchy

    index.php handles the pages for the most part

    Find
    the_time(

    It will be just after
    the_title()

    Adjust or remove as required...

    If you want specific help i'll need to know which theme you use (provide a link unless a default theme please), and under what case you wish to change the display, ie. When viewing a category, or when viewing a single-post (the full post).. etc...

    You'll only need a small piece of HTML, so i'm sure we can do it... ;)

  7. djoseph05
    Member
    Posted 5 years ago #

    I'm using the Perfect Sunset theme, scroll down on the page at http://www.1800blogger.com/free-wordpress-themes/

    I found the -

    the_time( code in the page.php, but - before I go and blindly hack it, I thought I'd save myself the guesswork and wait for your kind assistance again?

    Gracias

  8. djoseph05
    Member
    Posted 5 years ago #

    Forgot to answer the rest of your question. I guess I just want

    The Title

    Then the post, then the:

    Last modified on 2009-04-19 15:02:31 GMT.
    0 comments. Top.
    Edit topic.

    However, if you could tell me how to deal with those, (Last modified words, GMT, (I am in EST), Comments, Top, and Edit Topic), I would rather remove the Edit topic altogether. I would like to know where I can manipulate those things so I can tinker and get the best look.

  9. djoseph05
    Member
    Posted 5 years ago #

    ps - I will read up at the links you sent also, thanks. I've been up all nite (past my bedtime) and I just took a peek at the template help link. It looks like pretty good info.

  10. t31os
    Member
    Posted 5 years ago #

    In index.php is the following piece of code....

    <div id="content_box">
    			<!--post title as a link-->
    
    				<h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
    	<div class="toptags">By <?php the_author(); ?> | <?php the_time('F j, Y'); ?></div>
    		<div class="postspace2">
    	</div>	
    
    				<!--post text with the read more link-->
    					<?php the_content('Read the rest of this entry »'); ?>
    				<!--show categories, edit link ,comments-->
    
    				<div class="tags"><b>Topics:</b> <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></div>	
    
    	</div>

    Might be easier to read with some proper (or better) formatting.. like so..

    <div id="content_box">
    
      <!--post title as a link-->
      <h1 id="post-<?php the_ID(); ?>">
        <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
      </h1>
      <div class="toptags">
        By <?php the_author(); ?> | <?php the_time('F j, Y'); ?>
      </div>
      <div class="postspace2"></div>	
    
      <!--post text with the read more link-->
      <?php the_content('Read the rest of this entry »'); ?>
      <!--show categories, edit link ,comments-->
    
      <div class="tags">
        <b>Topics:</b> <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>
        <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
      </div>	
    
    </div>

    If you want to move the author and time, then move this bit..

    <div class="toptags">
        By <?php the_author(); ?> | <?php the_time('F j, Y'); ?>
      </div>

    For example, below the content...

    <div id="content_box">
    
      <!--post title as a link-->
      <h1 id="post-<?php the_ID(); ?>">
        <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
      </h1>
      <div class="postspace2"></div>	
    
      <!--post text with the read more link-->
      <?php the_content('Read the rest of this entry »'); ?>
      <!--show categories, edit link ,comments-->
    
      <div class="toptags">
        By <?php the_author(); ?> | <?php the_time('F j, Y'); ?>
      </div>
    
      <div class="tags">
        <b>Topics:</b> <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>
        <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
      </div>	
    
    </div>

    Archive and single.php will also have code like the above to adjust to.

    In regard to the edit link, only author level users will be able to see it, so don't worry about regular visitors seeing it...

  11. djoseph05
    Member
    Posted 5 years ago #

    Thanks for your help. I'll print this out to and play with it a while.

Topic Closed

This topic has been closed to new replies.

About this Topic