Forum Replies Created

Viewing 15 replies - 31 through 45 (of 45 total)
  • Forum: Fixing WordPress
    In reply to: Looking for a way
    Thread Starter armstrong1118

    (@armstrong1118)

    What it boils down to is that I am trying to use wp as a CMS.

    I was looking into some apparently complex navigation that wp isnt capible of handling (or if it is, no one has been able to help me with) and am trying to find a work-around for it so that I can use wordpress.

    Forum: Fixing WordPress
    In reply to: Looking for a way
    Thread Starter armstrong1118

    (@armstrong1118)

    I wasnt really too clear there, I am looking to have a single post loaded into the category page. But at the same time, if someone chooses a different post from the sidebar the new selected post will replace the other post.

    I guess im trying to see if i can get it to mimic an iframe without actually having to use iframes

    Thread Starter armstrong1118

    (@armstrong1118)

    if I declare a variable to be global in a function, should I be able to access it in any of my Pages?

    Forum: Plugins
    In reply to: Plugin / Navigation help
    Thread Starter armstrong1118

    (@armstrong1118)

    Update – I know for a fact that the function works ok, the problem is in the sidebar, for some reason how I address the variable in the if statement isnt catching.

    Forum: Plugins
    In reply to: Plugin / Navigation help
    Thread Starter armstrong1118

    (@armstrong1118)

    sorry, I was just trying to generalize everything for the post and missed the second halfI guess, all the variables are set to $myCtg

    Thread Starter armstrong1118

    (@armstrong1118)

    Is this really a difficult question?

    Thread Starter armstrong1118

    (@armstrong1118)

    anyone?

    Forum: Fixing WordPress
    In reply to: Redirecting?
    Thread Starter armstrong1118

    (@armstrong1118)

    jeremy–

    Sorry, I misunderstood you, the in_category is much simpler than what I was doing. I thought that you were saying to use is_category. Sorry again, you actaully helped me out huge.

    moshu —
    Do you know where I can find a resource on showing just a single post on the category page?

    Forum: Fixing WordPress
    In reply to: Redirecting?
    Thread Starter armstrong1118

    (@armstrong1118)

    Im not sure if that will work. My posts fall under many categories each, I have it set up to put posts from the same category in the sidebar, based on which category archive they used to access the post.

    Im using $_SERVER[‘HTTP_REFERER’] to get that information. I just remembered that there was a flaw where unless you click a link, the referring url doesnt register. So it wouldnt register the url from the archive anyway.

    So it looks like im out of luck on this solution, off to find another one.

    Thanks

    Thread Starter armstrong1118

    (@armstrong1118)

    alright, I figured this out, but its gonna get very messy and I was wondering if anyone had any ideas/suggestions on how to maybe clean it up?

    Right now I have this code in my sidebar.php
    ——————————————–
    <?php
    if (is_single() && $_SERVER[‘HTTP_REFERER’] == “INSERT URL”) {
    wp_list_bookmarks(stuff);
    }
    ?>

    Im really glad that it works, not so pumped about how many different instances im gonna have to put in though…

    Thread Starter armstrong1118

    (@armstrong1118)

    Is there anyone who might be able to help me?

    Thread Starter armstrong1118

    (@armstrong1118)

    Yea, since I wasnt able to find anything in my initial searches for referrer that wasnt a stats thing. Thats why my thought was to see if it was possible through variables and such, but if there is a way through a referrer Im sure its much better.

    Thanl you for the help on the first part.

    Thread Starter armstrong1118

    (@armstrong1118)

    Alright, sorry for not being real clear on this. Im trying to make a portfolio site to display projects. Right now, you navigate using the sidebar to go through the different categories to the projects (services > web > project 1).

    Thats all fine and dandy, the problem is whenever you go into the singe post view (single.php) I want the sidebar show the rest of the web projects.

    The other thing is that project 1 also classifies as a marketing piece, so I would want to make it so if they acess the project 1 through the marketing category, on the single.php I would like the sidebar to show the rest of the marketing projects.

    (I hope thats better)

    Thread Starter armstrong1118

    (@armstrong1118)

    by the way, here is the code im using.
    ————————————————–

    <?php get_header(); ?>

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

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

    <div class=”navigation”>
    <div class=”alignleft”></div>
    <div class=”alignright”></div>
    </div>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”Permanent Link: <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>

    <div class=”entry”>
    <small><class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> Filed under: <?php the_category(‘, ‘) ?></small>
    <?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>

    <?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
    <?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?>

    </div>
    </div>

    <?php endwhile; else: ?>

    <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Thread Starter armstrong1118

    (@armstrong1118)

    I would like certain pages to declare a variable value so that, possibly through the use of a function, the sidebar can use a menu that relates.

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