• djoseph05

    (@djoseph05)


    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter djoseph05

    (@djoseph05)

    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”)

    t31os

    (@t31os)

    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.

    t31os

    (@t31os)

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

    Thread Starter djoseph05

    (@djoseph05)

    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.

    t31os

    (@t31os)

    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… 😉

    Thread Starter djoseph05

    (@djoseph05)

    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

    Thread Starter djoseph05

    (@djoseph05)

    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.

    Thread Starter djoseph05

    (@djoseph05)

    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.

    t31os

    (@t31os)

    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…

    Thread Starter djoseph05

    (@djoseph05)

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Simple question from newbie abt ID for post’ is closed to new replies.