WordPress.org

Ready to get started?Download WordPress

Forums

Including different fixed blocks withs cats. (7 posts)

  1. midori
    Member
    Posted 9 years ago #

    Currently doing that as a plugin, if you can wait a bit....

  2. Tim_Bailey
    Member
    Posted 9 years ago #

    Thanks for your response. I am happy to wait a while (i guess you are thinking of a few weeks?). Is there anything I can do to help you - not that I can write PHP, but there might be something :-)

  3. midori
    Member
    Posted 9 years ago #

    Yes, one. I tweaked so much my index that I can not get straight between which tag the text is supposed to show up :P So if you can telle me that you want it basically in, for example, <div class="storycontent"> and </div> or so, that could help. And .. no, should be ready in a few days ^^;

  4. midori
    Member
    Posted 9 years ago #

    There we are :) http://www.loutan.net/blog/images/wp-cat-intro.zip
    Hope it corresponds to what you wanted, if not, ask away :)
    English discussion of the plugin, please post on this thread. French, go on my blog ;) http://www.loutan.net/blog/index.php?p=295

  5. Tim_Bailey
    Member
    Posted 9 years ago #

    I have had a quick 'play' with your code and it seems to do exactly what I want. Thank you for your help. If I have any more (of your) smart ideas I will post again :-)

  6. Tim_Bailey
    Member
    Posted 9 years ago #

    I have tested the code some more and have found a problem. I am not using the standard wordpress template, but I slightly modified version of a three colum design (possibly from digeratipeninsula).
    When I follow your instructions and add the 'showintro' snippet of code to index.php, it works, but also moves the items from the right hand column (categories) and left and column (search) neatly underneath the bottom of my central column that contains the comments.
    I am guessing that there is an issue with the stylesheet somewhere, but I can not understand how adding the function will cause this problem. Any thoughts?

  7. midori
    Member
    Posted 9 years ago #

    Well, appart from the typo that was corrected, I suppose you do not use exactly the same things (div, p, ...) after and before that I do, and that the plugin gives as *default*.
    Just try to modify that in the plugin (or use the advanced function) to have the blog display the same that you use for other posts...
    Change :
    $showbefore = '<h3 class="storytitle">', $showmiddle = '</h3><div class="storycontent">', $showafter = '</div>' by what you want used... I do not know what you use...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.