Viewing 13 replies - 1 through 13 (of 13 total)
  • I don’t see where it says wellness becomes you, is that the output of the title? ..I don’t see it on your site either.

    what is the goal? are you just trying to show 2 category links?

    Thread Starter biggupp

    (@biggupp)

    Sorry, I’ve been trying to fix this. If you would, pls try again. It is the area that says: “EVENT-LONG_DESC TITLE”

    Thanks again.

    I see that, but I’m not sure whats going on. is it a category link?

    Thread Starter biggupp

    (@biggupp)

    I wish to call the title of one category title of ‘event-long_description’ on top, and the category content ‘event-short_description’.
    What am I missing from my code?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter biggupp

    (@biggupp)

    Do I have to put the section
    <!- event-short_description category content output here ->
    in a separate div or container or such?

    if you just need a link to a specific category:

    <a href=" <?php echo get_category_link(10);?> ">category name</a>

    replace the number 10 with your category id, then enter the name for the link.

    Thread Starter biggupp

    (@biggupp)

    Tried that with the code below. No difference. What am I missing?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter biggupp

    (@biggupp)

    This code, actually (maybe the SOPA protest is affecting this). Otherwise, pls look at the page itself for the code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter biggupp

    (@biggupp)

    Yeah, I think the protest is censoring this willy-nilly. Time to end censorship. Thanks again for the hand.

    The SOPA protest has nothing to do with it.

    1. You are not posting properly by enclosing code/markup snippets between backticks or using the code button.

    2. You are posting too much code (no more than 10 lines, please).

    Thread Starter biggupp

    (@biggupp)

    I am trying a new tac using the_excerpt . Pls standby

    Thread Starter biggupp

    (@biggupp)

    https://ahy4life.com/test2/index2.php

    Alright, I am trying to start fresh using the_excerpt and the_title using the code below. But there is a “0” that keeps appearing. How can I fix this?


    <?php
    $category = get_the_category();
    echo $category[5]->event-long_description;
    ?><?php the_title();?>

    I’m pretty sure you can’t get output from a category link, have to query_posts,

    This will get a specified # of posts as titles and excerpts in 1 category,

    <?php query_posts('category_name=category-3&showposts=3'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <p><?php the_title();?></p>
    <p><?php the_excerpt(); ?></p>
    <?php endwhile;?>
    <?php wp_reset_query();?>

    But if it works can depend on where you use it.

    This will let you show a link to a category, with the category name as the link button.

    <?php $category_id = get_cat_ID( 'Category Name' );
    $category_link = get_category_link( $category_id );
    ?><p><a href="<?php echo esc_url( $category_link ); ?>" title="Category Name">Category 3</a></p>

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Categories Loading Improperly’ is closed to new replies.