Forum Replies Created

Viewing 15 replies - 16 through 30 (of 31 total)
  • Forum: Your WordPress
    In reply to: Burbling.net
    Thread Starter Bonnie

    (@bonnie)

    Thank you! 🙂

    I made a category called Layout History, and then for each layout, I created a new post in that category with the name of the site and version as the title, and a description of the site as the post content. I then created a screencap and thumbnail with the same name as the post slug (i.e. for the title Burbling.net v2, the post slug was burblingnet-v2, so I had burblingnet-v2_tn.jpg and burblingnet-v2.jpg) and put those in a separate folder. I then made a new template for the category (by installing the Post Templates by Category plugin) and called up all the individual posts in that category like this:

    <?php $posts = query_posts($query_string . ‘&orderby=date&order=desc&posts_per_page=-1’); ?>

    <p class=’center’>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <x href='<?php the_permalink(); ?>’><img id=’post-<?php the_ID(); ?>’ class=’border’ src='<?php echo bloginfo(‘url’); ?>/images/site/layout-history/<?php echo $post->post_name; ?>_tn.jpg’ width=’150′ height=’82’ alt='<?php the_title(); ?>’ title='<?php the_time(‘F jS, Y’) ?> – <?php the_title(); ?>’ /></x>

    <?php endwhile; else: ?>

    (Where x = a; it didn’t like the a href, for some reason!)

    Hope that helps! 🙂

    Thread Starter Bonnie

    (@bonnie)

    I was searching the forums for “post slug” instead of “page slug”. Oops. Found my answer:

    <?php echo $post->post_name; ?>

    Thread Starter Bonnie

    (@bonnie)

    Unfortunately, Ian, I can’t seem to get any tags to work in that way without putting them inside their own PHP tags. 🙁 It’s a shame because that’d be very convenient!

    Minna – You’re an absolute star. That works. 🙂 Thank you so much!

    Thank you Ian and Minna for all your help. 🙂 Now I can finally get on with modifying this script!

    Thread Starter Bonnie

    (@bonnie)

    Same problem with ‘print’. Hmm. I think I may just have to re-shuffle my site structure a bit and try to get away with using relative links after all. Thanks for the help, though, Minna and Ian. It’s much appreciated!

    Thread Starter Bonnie

    (@bonnie)

    Hi Ian –

    I don’t think so, because I need to use this same header for all my pages and some of them are in different folders. 🙁

    Hmmmm.

    Thread Starter Bonnie

    (@bonnie)

    Thanks for the suggestion, Minna.

    Unfortunately, both of those seem to print out the following:

    http://www.burbling.net/wordpress/<img src=”/images/nav_.png” width=”120″ height=”30″ alt=”” />

    It echoes the value of blog(‘url’) before starting the IMG tag. I’m not really sure why though! I tried moving things around but to no avail. *feels a bit stupid*

    Thread Starter Bonnie

    (@bonnie)

    Yes, I’ve read the usage instructions and I can get the plugin working fine. However, I am trying to use a tag *within* PHP, so enclosing it in <?php … ?> tags won’t work. Similarly, just using it on its own (without the PHP tags) doesn’t work either.

    This applies to templates as well, not just pages and posts.

    Thread Starter Bonnie

    (@bonnie)

    Hi and thanks for the reply. 🙂

    It’s a plugin that basically allows you to treat pages and posts like regular PHP pages, providing you use the correct <?php … ?> syntax. It doesn’t require any special syntax (such as the suggested <phpcode> tag). It’s the RunPHP plugin. I’m using it within WP pages (not external pages).

    Basically, what I need to know is how to write the variable bloginfo(‘url’) without enclosing it in its own <?php … ?> tags. Not just in my plugin-ified pages, but in templates, too. So, for example, if I wanted to include some PHP in my header template (which I do, also) I would use something like this:

    <?php echo “<img src=\”bloginfo(‘url’)/images/nav_{$nav_id}.png\” width=\”120\” height=\”30\” alt=\”$nav_title\” />”; ?>

    … where bloginfo(‘url’) is the variable for bringing up the URL to my WP installation, and $nav_id and $nav_title are my own pre-defined variables (which do work). Unfortunately, the script seems to break if I “leave” PHP to display the images, so I’d like to know how to echo the variable without its <?php … ?> tags. Simply using bloginfo(‘url’) doesn’t work; it just prints out “bloginfo(‘url’)” rather than the variable’s value.

    Thread Starter Bonnie

    (@bonnie)

    I did upgrade(see above) but it didn’t change the structure of the database; I assume it doesn’t matter to the script which order the fields are in. HOWEVER, I think I’ve actually figured it out for myself after all that. Always the case.

    Just in case anyone else is having the same problem: checking the “Complete inserts” box in phpMyAdmin before taking the data dump seems to include the field names in the dump. I don’t know why I didn’t think of that before. Sorry!

    Forum: Plugins
    In reply to: Clean Archives v1.0

    I got this plugin working in no time at all and it works perfectly. 🙂 I’m just having one small problem with it, though. I use WordPress to manage not just my blog, but also some other types of writing in separate categories, and I exclude those categories from my index file, search engine, etc. but I can’t seem to exclude them from the Clean Archives list of posts.

    Is there any way to do this? Thanks in advance to anyone who knows!

    Thread Starter Bonnie

    (@bonnie)

    Does anyone else have any ideas? Or is this function not yet supported…?

    Thread Starter Bonnie

    (@bonnie)

    Yes, I’ve tried that one – I didn’t get an error on the main category pages like with other tags, it just didn’t display anything.

    “How do I make the date appear on each post, instead of only on the most recent post of the each day?”
    http://wiki.wordpress.org/index.php/WordPress%20Tips
    I think that’s what you’re looking for. 🙂

    Thread Starter Bonnie

    (@bonnie)

    *Hits head* I’m so stupid! I had my email address under ‘admin_email’ but not in my actual profile. In fact I didn’t even spot the ‘My Profile’ option. I feel very silly now. 🙂 But thanks, I needed that pointer!

    Thread Starter Bonnie

    (@bonnie)

    Thanks so much! 🙂 I’m trying it out now, fingers crossed that it’ll work. I appreciate your help. 🙂

Viewing 15 replies - 16 through 30 (of 31 total)