WordPress.org

Forums

Hack Guideline (13 posts)

  1. Matt Mullenweg
    Troublemaker
    Posted 12 years ago #

    Try to use built-in functions such as apply_filter etc. whenever possible, your code should be minimally invasive.
    Always follow the coding style developer guidelines.
    If you are thinking about doing something major, contact a developer and there's a good chance (if it is a good feature) that we'll want to roll it in with the main release. But you'll only know if you ask.

  2. southerngal
    Member
    Posted 12 years ago #

    I would love to see a way to put the archives on another page. I have a portal page and would like to include them there instead of on the blog page, but it gave me errors.

  3. JimBrown
    Member
    Posted 12 years ago #

    southerngal, I use my WP template as the default "look and feel" of my entire site. All my pages have the archives on them with no problem. Take a look here: http://env.ourcrofts.com/index.php . That index page is not my weblog, but the archive display and link correctly. I didn't do anything special, just copied the code from the default index.php that came with the WP files. I did have to modify the code to get the categories to point to the weblog.php page, but nothing for the archives. When you mouse over an archive month (and I am using monthly archiving, not weekly), what URL do you see in the browser status bar?

  4. Matt Mullenweg
    Troublemaker
    Posted 12 years ago #

    Let's keep this on-topic, I put some archive information here http://wordpress.org/support/3/344 .

  5. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    The new wiki is a great place to put hack code. Try it out.

  6. trakwebster
    Member
    Posted 11 years ago #

    Hi, allusion,
    Where did the wiki come from? That is, is it specific and written for WordPress, or is it some existing code woven in somehow?

  7. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    The wiki is run using http://phpwiki.sourceforge.net/ .

  8. lilli
    Member
    Posted 11 years ago #

    Hallo
    Kann mir jemand kurz erklären, wie man einen Hack integriert, aktiviert. Wohin muss die Hack-Datei kopiert werden und wo aktiviere ich (als Laie) das ganze.
    Vielen Dank im Voraus,
    Lilli

  9. oerdec
    Member
    Posted 11 years ago #

    @all: she wants to know how to integrate and activate hacks.
    @Lilli: ...ist zwar auch englisch, aber vielleicht hilft´s trotzdem:
    http://wiki.wordpress.org/index.php/my-hacks.php
    und
    http://wordpress.org/support/10/3949
    oerdec//

  10. Anonymous
    Unregistered
    Posted 11 years ago #

    How do you get a login?

  11. lokrin
    Member
    Posted 11 years ago #

    ok, I've got version 1.2 and the plugins of
    Hello Dolly
    Search Hilite
    WP Grins
    WP Styles Switcher
    I've activated them all in wp-admin/plugins.php
    I am still not seeing any of them working at all.
    The one I'm most interested in is the WP Grins plugin. How do I get it to work?

  12. Anonymous
    Unregistered
    Posted 11 years ago #

    Are plug-ins really working in WP 1.2 RC1 ?
    I've code this test plugin :
    <?php
    /*
    Plugin Name: Testplug
    Plugin URI:
    Description: test plugin
    Author: me
    Author URI: http://test.net
    Version: 0.1
    */

    function toto() {
    echo 'TOTO !!!';
    exit;
    }
    add_action('publish_post', 'toto');
    add_action('edit_post', 'toto');
    add_action('delete_post', 'toto');
    ?>

    and it doesn't work (nor does the BlogTimes plugin).
    other plugins that don't rely on publish_post, edit_post, delete_post seem to work though ...
    a little tiny help would be greatly welcome ;-)

  13. unteins
    Member
    Posted 11 years ago #

    Here's a question I have.
    It says to use the built in functions where possilbe, I am ok with that. However, I have a situation where I can use a built in to get an array but then I have to loop through the array, or I can make a sql query and have exactly what I need (there is no built in to do it)
    Which way should I go? Obviously the direct query is much faster since I don't have to loop through anything.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.