armstrong1118
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Looking for a wayWhat 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 wayI 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
Forum: Fixing WordPress
In reply to: Problem in categoryif 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 helpUpdate – 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 helpsorry, I was just trying to generalize everything for the post and missed the second halfI guess, all the variables are set to $myCtg
Forum: Fixing WordPress
In reply to: Question about $catIs this really a difficult question?
Forum: Fixing WordPress
In reply to: Question about $catanyone?
Forum: Fixing WordPress
In reply to: Redirecting?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?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
Forum: Fixing WordPress
In reply to: new to wp and php, need helpalright, 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…
Forum: Fixing WordPress
In reply to: new to wp and php, need helpIs there anyone who might be able to help me?
Forum: Fixing WordPress
In reply to: new to wp and php, need helpYea, 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.
Forum: Fixing WordPress
In reply to: new to wp and php, need helpAlright, 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)
Forum: Installing WordPress
In reply to: Showing only 1 post?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(); ?>
Forum: Fixing WordPress
In reply to: new to wp and php, need helpI 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.