WordPress.org

Support

Support » Themes and Templates » Can i write modules for WP?

Can i write modules for WP?

  • I am new to WP and came over from MT.
    With MT i can create modules and insert these modules into templates like this:
    <$MTInclude module=”DTD”$>
    This inserts the DTD. How is this be done with WP?
    Thanks Leslie

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thank you:
    <?php include(filename.ext) ?>
    Are they called plugin files and located in /WP-includes?
    Some came with WP:
    google-hilite.php
    hello.php
    markdown.php
    textile1.php
    textile2.php
    Can i delete them?
    But what are common files? Is there no directory structure like in MT? Couldn´t find something like that. From MT I have
    /archive/
    /about/
    /img/
    /css/
    .
    .
    Actually i don´t understand the WP mechanism. Is it this: I have to edit my files with Dreamweaver, FTP upload them to WP ( to wp-content or wp-include) and now i can edit these files via the WP interface? That means i have to create
    /wp-content/css/
    /wp-content/img/
    and ftp all the include modules to
    /wp-include ? And they are *.php?
    Is it that?
    Maybe you can ask me this question: With MT i use lastn=”1″ etc. and offset=”1″ etc. Does WP has something like that?
    Thanks again, Leslie

    P.S: Forgot one thing: Does WP has german time displays? May=Mai or July=Juli?

    Ich schreibe das folgende auf englisch, damit andere dir auch helfen können. Die deutsche Version findest du auf dem Wiki unter “Lokalization”. Hier ist ein deutsches Doku-Wiki.
    OK, your questions are so general that it’s really hard to answer them, except by writing a 10 page introduction to WP. WP is different from MT in that there are no static pages: all of them, including archives, are dynamically generated from the database. Therefore there’s no need for /archives/ directories etc.
    PHP includes do exactly that: the content of a file is read and inserted into the main file. Plugins are a different matter: They are “modules” in the sense that they add functionality to the blog.
    Now you have surely a concrete reason why you are asking these questions. So… what do you want to achieve on your blog? If you tell this forum, someone will most likely have an answer.

    And btw, you don’t need to include the DTD (DocType Declaration, right?) expressly, it’s already there in the default index.php.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can i write modules for WP?’ is closed to new replies.
Skip to toolbar