Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Seijun

    (@seijun)

    Ok, I figured out one way!
    Earlier I mentioned that one of my attempts worked except for stripping out ALL formatting. This was using strip_tags, and I remembered that I could tell strip_tags to allow certain tags. This worked:

    <?php
    $terms_as_text = get_the_term_list( $post->ID, 'operating_system', '<dt>Operating System(s):&nbsp</dt>', ', ', '' ) ;
    echo strip_tags($terms_as_text, '<dt>,&nbsp');
    ?>

    If anyone has a better idea, please let me know.

    Also, what does the extra , ‘, ‘, ” at the end of my string mean? This was code taken from the wp codex and on the forum here.

    Thread Starter Seijun

    (@seijun)

    I put

    <?php
    $terms = get_the_terms( $post->ID, 'operating_system', "Operating System") ;
    ?>

    into my single.php file.

    This results in no taxonomy info of any kind being shown.

    Thread Starter Seijun

    (@seijun)

    EDIT:

    My problem was wp’s “wpautop”. The auto formatting was causing my excerpt editors to act unpredictably, especially with thumbnails for excerpts enabled.

    If you are having trouble getting your excerpts and/or posts formatting to behave, try adding this to your theme’s functions.php!

    //disable auto p
    remove_filter ('the_content', 'wpautop');

    Im having a problem where for some reason advanced excerpt only allows me to use up to 53 words when i am using thumbnails for excerpts. If thumbnails is deactivated, it works.

    I am having the same problem.

    Hi,
    I just had that same problem. Any search of any kind redirected me to my homepage, regardless of the theme I was using or what plugins I had active.

    The problem was this:
    I had installed wordpress in my root directory. Then instead of allowing a wordpress page to be my homepage, I wrote up my own non-wordpress html page to be my homepage and put it in my root directory also. I don’t know how the search works exactly, but when it searches for something, it calls on the homepage address (www.mysite.com). Things work fine when the homepage is a wordpress page, but when the homepage isn’t, the search fails and you get stuck on your non-wordpress homepage.

    Two solutions:
    1) Get rid of your non-wp homepage and design a wp page for the homepage.
    or
    2) Install or move wp to its own subdirectory (ex: “wpsub”) and keep your non-wp page in the root directory. Now, you can safely design a wp page for wordpress to use its homepage. Since this new wp homepage will also be located in the “wpsub” subdirectory, its address will be http://www.mysite.com/wpsub. When wp calls on the homepage, it calls on http://www.mysite.com/wpsub instead of http://www.mysite.com. So people entering your site through the “main gate” (www.mysite.com) will continue to see your non-wp homepage, which you can then link to your wp homepage. The only drawback to this is that all your pages beyond http://www.mysite.com will have the wp subdirectory name attached, which might annoy you.

    Hope this helps.

    Thread Starter Seijun

    (@seijun)

    Anyone?

    Thread Starter Seijun

    (@seijun)

    Thanks! I’ll give it a try.
    My only and last CMS experience was drupal, and my attempt to create a theme there was utter failure, I’m hoping things go better the wordpress!

Viewing 8 replies - 16 through 23 (of 23 total)