Forum Replies Created

Viewing 15 replies - 1 through 15 (of 45 total)
  • Thread Starter jwesseldyke

    (@jwesseldyke)

    Thanks to you both for the information. The core edits were a pain because of upgrades, etc. but I wasn’t aware there was a widget to do it…

    The widget you mentioned provides a good solution to my need.

    Thanks again, both of you…
    J

    Thread Starter jwesseldyke

    (@jwesseldyke)

    In the past I had edited the core file widget.php but it seems like with the new release it’s different… It must be doable, because it shows up, I just have to find the relevant core file and section to change…

    Thanks for the help…

    Thread Starter jwesseldyke

    (@jwesseldyke)

    Sorry I wasn’t clear.

    Without the widget there’s nothing there. With the widget, all the usual pieces are there, login, rss, wp link.

    I just can’t seem to track down the section that controls what displays in the widget.

    Thread Starter jwesseldyke

    (@jwesseldyke)

    Thanks so much for all your help, I sincerely appreciate it.
    J

    Thread Starter jwesseldyke

    (@jwesseldyke)

    OK… Here’s the relevant snippet… I’m working with a template file, not the main page.php, if that’s relevant I’m not sure…

    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    
    				<h1><?php the_title(); ?></h1>
    
    <table width="100%" cellpadding="5" cellspacing="0" border="1">
     <tr>
      <td>static content on the page</td></tr></table>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    				</div>
    			</div>
    
    		<?php endwhile; ?>

    The snippet from the codex isn’t here, but if I put it in after the endwhile it doesn’t pull the post, if I put it above, the post pulls in but not the static content I typed in on the edit/create page.

    Seems like I didn’t use query’s before, it was just a one line snippet that looked for x number of posts from a category… all this query stuff is beyond my comprehension… if it matters, I’m using php5.

    Thread Starter jwesseldyke

    (@jwesseldyke)

    Thanks for the link to the right section of the codex…

    As I’m not much of a coder, I took the snippet and changed the category name using the slug to grab a post from a specific category.

    I must have it in the wrong place because I either end up with the post and not the content of the “page” or the content of the page and not the post entry…

    Thread Starter jwesseldyke

    (@jwesseldyke)

    Works in Explorer 8 and Firefox 3.5.3 and I’m guessing if it doesn’t in other browsers it’ll display as it did before the fix… The menu buttons will show up and the rest of the menu bar will be non-existent…

    Thread Starter jwesseldyke

    (@jwesseldyke)

    That’s it. Thanks very, very much.

    Joel

    Thread Starter jwesseldyke

    (@jwesseldyke)

    OK… Got it… Thanks for the help…

    I was getting an error when I removed that line, which is why I thought it was required for something… Turns out, I missed the closing line after the section of code so I was getting a missing “}” error…

    All resolved. Thanks again.

    Thread Starter jwesseldyke

    (@jwesseldyke)

    oh, just FYI I removed the if this is frontpage line and just get an error, likewise if I remove both that line and the get_links_list…

    Thread Starter jwesseldyke

    (@jwesseldyke)

    Hmm… Good tip. So here’s the pertinent section of sidebar.php…

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    				<?php get_links_list(); ?>
    
    			<li><h2>Register / Login</h2>
                                    <ul>
                                      <?php wp_register(); ?>
                                      <li><?php wp_loginout(); ?></li>
                                      <?php wp_meta(); ?>
                                    </ul>
                            </li>
    			<?php } ?>

    I’m guessing, based on your thought about conditional tags that this is the issue… Only I don’t know how to change it so meta shows up on all the pages, dynamic or static.

    Thread Starter jwesseldyke

    (@jwesseldyke)

    OK…
    Sometimes I’m just not careful enough… Sometimes I’m just plain stupid. In this case, it’s both…

    The reason I was having trouble is because I had not checked “anyone can register”…

    Duh.

    Sometimes I’m such a noob…

    Might work to make a separate template from page.php, copy your script in that template file and when you create a new page, tell WP to use the template file you’re using.

    Thread Starter jwesseldyke

    (@jwesseldyke)

    I just wanted to update this thread after I’ve been trying different things to get the register link to work properly.

    When I use the wp_register code, and I’m logged in, it gives me the link to the dashboard and the login/log out link. When I’m logged out, only the login link appears.

    J

    Thread Starter jwesseldyke

    (@jwesseldyke)

    Thanks for the reply, however, if you’re clicking a link from the archive pages, like a title or category, it pulls up whatever template file that does display pages naturally, no?

    Clicking a category pulls up a page with all the posts on it, up to the number of posts you determine in settings. So therefore, no matter what you set the default number of posts to display on the page, there should automatically be a prev/next link because those are pages that display naturally.

    I’m just not sure what template file it uses or if this code is even correct. It looked to me like the person who started the thread I found these snippets in got it to work, although I can’t seem to.

Viewing 15 replies - 1 through 15 (of 45 total)