Forum Replies Created

Viewing 15 replies - 181 through 195 (of 2,975 total)
  • From your Administration Panel, click MANAGE > CATEGORIES.

    On the list you will see an ID number and then the name of the category, along with other information.

    In general, something like “uncategorized” has an ID of 1 since it comes with your blog by default. You can add or remove categories from there.

    Actually, anyone going with an older version, specifically pre 2.0.7, is at risk. Several of the releases between 2.0 and 2.1 were security patches. If you are still using anything less than 2.0.7, you are at risk. It is highly recommended to upgrade to at least that.

    Having done much of this myself a while ago, here is a list of articles about how I imported static HTML files into WordPress.

    As for your folder structure, that’s old static HTML thinking. WordPress creates “virtual” web pages, not real ones, so you will not have any real directories. I recommend you stick with categories for a visual URL that points to a specific page, such as example.com/title-of-book-as-category/title-of-post-chapter/. I also recommend you use a breadcrumb WordPress Plugin for the user to track where they are in the hierarchy of things.

    I also recommend you add to your list customized Category Templates to really help arrange your content.

    I hope this helps.

    Then answer is you have to pay for the upgrade, and in the future, please direct WordPress.com questions to the WordPress.com Forums for a speedier reply.

    Forum: Fixing WordPress
    In reply to: Comment error?

    Line 96 would not necessarily be in your comments.php. It starts from the first line of your entire page (in the head) and then counts down from there.

    And the error tells you what’s wrong and needing fixing.

    View the entire source of the generated page and go down to line 96. It looks like it is in the Recent Comments section, so that is where the error is.

    More importantly, when I viewed your site, no error appeared. You probably fixed it. Please let us know you’ve fixed the problem in the future, so we don’t have to answer the question.

    I recommend you contact the plugin author for help on this. According to the plugin site, HTML support is provided by the author for a fee.

    Are you using the Asides technique or the one I wrote manually above?

    Hopefully someone will have a better answer, but we need to know the specifics. Sorry for the delay in responding. I’m still traveling.

    See also Adding Asides as that is another similar technique.

    Oh, if you don’t want custom content or design elements on your Alpha category that looks different from the rest of your category pages – you want it to basically look the same, just have the posts only from Alpha show up, then do most of nothing I just explained except to create a manual link wherever you want it to appear in your header.

    When clicked, WordPress will automatically use the category template file (or whatever is its equivalent) to showcase ONLY posts in the Alpha category. All you have to do is provide the link, highlighted in whatever manner you like.

    I have over 40 categories on my main site but on the header of every page, you only see the top 7, and I’ve manual links to specific categories all over my various sidebars, but the reader doesn’t realize it.

    I also use custom category template files, as described above, on ALL 47+ categories, each one containing content and posts specific to each category. Poke around to see if this is more what you want to do.

    If I understand what you want to do correctly, here is a simple, off-the-top of the head solution.

    1. Using whatever method you found above to “eliminate” a category from your category list, wherever your category list is shown, if you don’t want that category shown in that list.

    2. Create a manual link to your chosen category (let’s call it Alpha with an ID number of 5) in your WordPress Theme header template file where you want the link to the category to appear.

    <a href="/index.php?cat=5">Alpha</a>

    3. Using the Template Hierarchy, create a Category Template called category-5.php and put it in your WordPress Theme folder.

    Make it “look” however you want it to look by copying the code and design elements from your index.php or category.php. Be sure to include the “includes” for the header, sidebar, footer, etc. You may want to change the_content() to the_excerpt() to show only excerpts not full posts. You can include custom text or whatever you want on that template file.

    4. When a user clicks on the Alpha link, it will automatically call up the category with ID number five and show only the posts within that category. There is nothing you have to do to the WordPress Loop or anything.

    If category 5 shows up in any category list, like in a category list on a post, any time anyone clicks the Alpha category, WordPress will automatically display that custom category page.

    There is nothing more “special” you have to do.

    Part of the confusion on this was your use of “page”. In WordPress, a “Page” is a special type of web page and a “page” is another word for “web page”, which is any web page on your blog. A “post” is a web page with your post content, and that uses the WordPress Loop to be generated on your WordPress blog web pages.

    Putting a self-generating list of posts from a specific category on a Page makes things complicated. However, customizing a category page is easy, no messing with the Loop.

    PART II

    If you would like a list of the posts ONLY in the Alpha category to be seen in a special section on the front page of your blog, that’s a different issue. There are a lot of ways you can do this. If you want it to appear on every page, see query_posts or check out Customizable Post Listings WordPress Plugin by Scott Reilly to show the posts from a specific category, from inside or outside the WordPress Loop.

    If you want the list of Alpha’s post to appear ONLY on the front page and not on the other web pages on your blog, then you can use a conditional tag statement in your sidebar, header, or wherever, that lists the last 5 posts in that category:

    <?php
    if (is_home()) { ; ?>
    <h5><a href="/index.php?cat=5">Alpha</a></h5>
    <ul>
    <?php
    $myposts = get_posts('numberposts=5&category=5');
    foreach($myposts as $post) :
    ?>
    <li><a href="<?php the_permalink(); ?>">
    <?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>
    <?php }; ?>

    I shouldn’t write code this late at night, so someone please fix this if I messed up.

    There are a lot of ways you can do this, including with the Customizable Post Listing WordPress Plugin or using a feed link to that specific category in a Widget or manually generated so you wouldn’t have to use all that code. Try one of the various Feed/Syndication WordPress Plugins to help you do this to make it easier.

    Hopefully this will help you do what you want. You can also set up a whole separate blog within a blog, but you are only messing with a specific category that you want “within” your current blog. This also allows you to change your mind when you are done highlighting that specific category, giving you more flexibility.

    Am I on the right track?

    These were created with various javascripts which create overlays. Search the net for image javascripts or contact the blog owner to find out the specifics of what they use. A look at the source code (View > Source) will give you the names of the javascripts. Other than that, the use of these are outside the realm of this forum.

    I could reach through this screen and hug the ever-loving life out of you, Otto!!!! Brilliant. THANK YOU. KISSES!

    Yes, I know. I’m a raging nit-picker. And you are a total star. Give me an “and” before the last category and you are a celebrity! HA! I ask for so much, but then, I expect great things from my wonderful WordPress gurus.

    Okay, I’m slightly kidding. It would be sweet to have the “and” but this is fabulous. Thank you so much.

    Lorelle

    (@lorelle)

    Oh, Otto42, and anyone else paying attention. It didn’t work.

    <?php foreach((get_the_category()) as $cat)
    {
    echo '<a href="';
    get_category_rss_link(true,$cat->cat_ID,$cat->category_nicename);
    echo '">'.$cat->cat_name.'</a>, ';
    }

    Returns:

    Categoryone, categorytwo, categorythree, .

    Note the additional comma and the space then period. Is there any way to make this generate the list with the commas, but recognizing NOT to put the last comma in at the end? The space and period thing I can deal with. The comma period, that ain’t so nice.

    Thanks.

    Lorelle

    (@lorelle)

    My subdomain stopped working so I switched both the WordPress URL and Blog URL to the root, no subdomain, and now I can see the post previews.

    Could someone give us some very specific advice on how to set up the two URL requests in the Options when using a subdomain. Maybe we’re putting the wrong URL in the wrong place. Which should be which?

    And should anything be done to “force” the page to display when using a subdomain in the .htaccess or permalink structure?

    Thanks.

Viewing 15 replies - 181 through 195 (of 2,975 total)