samsonwiklund
Forum Replies Created
-
Is there anyway I could hardcode the category-variable in the code so the url could be:
http://www.url.com/whatever.php
instead of
i can’t seem to edit my post but:
The sticky I want is only for post
should read:
The sticky I want is only for one post.
Can I add somekind of if-statement that if the user is viewing a specific category I can get a sticky on top of it?
I don’t want the sticky to show up as a sticky on the main-site though, only when the user is viewing a specific category.
The sticky I want is only for post. Can I “hardcode” it through use of permalinks within some kind of if-statement which only shows when for instance “cat=222”?
I don’t have a “category.php” page but this is my page template:
<?php get_header(); ?> <!-- Content --> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- Post --> <div class="post" id="post-<?php the_ID(); ?>"> <div class="post-title"> <h2><?php the_title(); ?></h2> </div> <div class="post-entry"> <?php the_content('Read <span>more...</span>'); ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> </div> <!-- /Post --> <?php endwhile; ?> <?php else : ?> <!-- Post --> <div class="post"> <div class="post-title"> <h2>Finns inte</h2> </div> <div class="post-entry"> <p>Sorry, men du letar efter något som inte finns.</p> </div> </div> <!-- /Post --> <?php endif; ?> <div class="clear"></div> </div> <!-- /Content --> <?php get_sidebar(); ?> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Help! Blog is brokenJust reload the original files for the theme you are using and you should be back.
Pro-tip: A more descriptive title on your post here will get you more answers.
Forum: Fixing WordPress
In reply to: My RSS won’t change when I update old postsI figured it out.
The old files were still in the “enclosure” custom field.
I feel stupid. =(
Thank you henkholland for the tip though. It helped to solve another smaller issue I had.