Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Forum: Fixing WordPress
    In reply to: Editing Theme(s)
    Thread Starter sophistikat

    (@sophistikat)

    putting the code in a function didn’t work so i just put the code in a seperate file and loaded the file multiple times as an include.

    #Number Posts Per Category
    $category_posts=1; 
    
    $category_num=3; #ActionScript
    include (TEMPLATEPATH . '/ul_latest.php');

    I do have another question about get_posts

    $feature_post = get_posts( "category=$category_num&numberposts=1" );
    foreach( $feature_post as $post ) : setup_postdata( $post );
    
    <li><h2 class="latest"> the_category(' '); </h2></li>

    how can i say, only return the Parent? i’ve looked at the codex for get_posts and all the parameters point to defining how many children to get?!

    Here’s what I have.
    Parent: ActionScript
    Child: MovieClip
    Child of MovieClip: onEnterFrame

    So if my post would be in ActionScript > MovieClip > onEnterFrame

    i am using get_posts, setup_postdata and the_category to retrieve my latest post, which work but the_category returns ActionScript MovieClip onEnterFrame. I want it to return just the parent ActionScript

    Thread Starter sophistikat

    (@sophistikat)

    just for sh** and giggles, i removed the dollar sign and it works:

    $db = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
    mysql_select_db(DB_NAME);
    Thread Starter sophistikat

    (@sophistikat)

    straight from WP Template Tag Doc.

    <ul>
    <?php
    wp_list_categories('orderby=name&show_count=1&exclude=10'); ?>
    </ul>

    doesn’t work for me??

    Thread Starter sophistikat

    (@sophistikat)

    I’ve been doing more test and i still get no results. I’ve downloaded other themes to see their CSS and still nothing works… i must have deleted some call or function that its not allowing me to see anything.

    what’s required when using a function like:
    <?php get_archives(‘postbypost’, 10); ?>

    Thread Starter sophistikat

    (@sophistikat)

    An easier questions is, why wouldn’t <? php wp_get_links(); ?> output anything?

    Forum: Themes and Templates
    In reply to: Pages in Flash
    Thread Starter sophistikat

    (@sophistikat)

    I figured this out. The bloginfo() function’s output did not work with what i wanted so i simply queried the wp_options table to get the blog name and url.


    # add to tag: blog title
    $name_query = 'SELECT option_name, option_value FROM wp_options WHERE option_name="blogname"';
    $name_results = mysql_query($name_query);
    while($name_row = mysql_fetch_assoc($name_results))
    {
    echo "\t\t<item>" . $name_row['option_value'] . "</item>\n";
    }

    # add to tag: blog url
    $url_query = 'SELECT option_name, option_value FROM wp_options WHERE option_name="siteurl"';
    $url_results = mysql_query($url_query);
    while($url_row = mysql_fetch_assoc($url_results))
    {
    echo "\t\t<url>" . $url_row['option_value'] . "</item>\n";
    }

    Forum: Plugins
    In reply to: [Q] 2.2 Code Highlight
    Thread Starter sophistikat

    (@sophistikat)

    okay… what’s another good source for wordpress? i understand most blogs are personal and not based on programming.

    Forum: Plugins
    In reply to: [Q] 2.2 Code Highlight
    Thread Starter sophistikat

    (@sophistikat)

    I setup a temporary post this my problem. I am missing something? Can I be having a blonde moment?

    https://www.actionscriptblog.net/?p=43

Viewing 8 replies - 1 through 8 (of 8 total)