Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ygg

    (@ygg)

    Right, yup. Never mind. I’m adapting an elderly theme built by a previous developer who…didn’t have wp_head() in the header. Sorry!

    Well, that’s bad. Did you upgrade recently? Does the person who originally set up your site have a backup of the theme? Without your theme files, you won’t have any way to put it back the way it was.

    How is the site hosted? I’m guessing it’s a hosting company (as opposed to, for example, your friend)? They might be able to help or have a backup of your site that you could get the theme from…

    Thread Starter ygg

    (@ygg)

    Incidentally, the best way I have figured out to do it so far is to use query_posts() within a static page – but it sure does seem frowned-upon to put blog posts into a Page.

    Go to Appearance > Themes and make sure that your old theme is still there. If it is, choose “Activate.” It sounds like somehow your site’s theme was deactivated.

    Thread Starter ygg

    (@ygg)

    I’m not sure that submitting a holistic concept such as “separate presentation from data, please” to trac would really be a useful approach 🙂

    Obviously a *string* of run-together words would not be useful. A LIST, however, would be extremely useful. I would then be able to parse by the delimiter and present the list in whatever fashion I so chose.

    In my original post, I was mostly hoping someone would say “oh, yeah – we haven’t really updated the documentation too well yet, here’s how you do that in 2.x.” Clearly that was hoping for too much. I like WordPress enormously, and it does most of what I want fairly simply and easily. However, it seems that there was some lack of overall design during the development – and, more surprisingly, the development of a serious upgrade version.

    I have neither the time nor the development skill to rewrite what would be a significant chunk of code – code that would also seriously impact theme development. I do think that the API could use some re-examination, but that’s clearly not for me to be doing.

    ygg

    Thread Starter ygg

    (@ygg)

    Well, the wp_list_pages function appears to spit out an LI whether I like it or not (I str_replaced the tag after turning off echo, seeing no other recourse there – horrible solution, but no other presented itself.)

    wp_get_archives is great but looks highly idiosyncratic – why the other functions don’t have the custom html argument is a bit confusing since it’s extremely handy.

    wp_list_categories has the “style” argument but will still include markup (br tags) if set to 0.

    By and large, I have three problems with these functions, which are all, essentially, sidebar functions primarily:

    1. Markup is included in function output, thereby conflating presentation and functionality and removing presentation from my complete control.

    2. Visual presentation of these functions is nigh-identical, particularly in the default state, but control over that presentation and argument structure/presence varies wildly from function to function.

    3. At least one of the functions (wp_list_pages) does not appear to have any mechanisms by which I can alter presenation and markup output.

    It’s certainly a step up from earlier versions, where I had to yank & manipulate output via PHP’s output buffering functions, but it’s still a bit mad. If I’ve missed something in terms of control over presentation, please let me know!

    thanks,
    ygg

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