Inkludere side i side i WordPress

fredag, 16 juli 2010, 13:30

<?php include('side.php'); ?>

Cache til WordPress

torsdag, 15 juli 2010, 19:39

http://www.tutorial9.net/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/

Jeg bruger selv Hyper Cache, som kan sættes op på et PHP Safe Mode ON webhotel (Surftown, One.com etc.).

WP Super Cache har fået gode anmeldelser, men brugen forudsætter at du har webhotel med PHP Safe Mode OFF.

Egne felter med predefinerede tekst link

tirsdag, 13 juli 2010, 16:10

I WordPress kan du automatisk indsætte prædefineret indhold, ved hjælp af egne felter.

Et eksempel:

  1. Opret side eller indlæg (i Kontrolpanel)
  2. Skriv readmore i feltets Navn
  3. Skriv hvad du har lyst til i Værdi feltet - det er kun til at tricke funktionen.
  4. I dit php dokument indsæt
    <?php $readmore = get_post_meta($post->ID, ‘readmore’, true);
    if($readmore){ ?>
    <a href=”http://mydomain.dk/om_mig”>» Læs om mig</a><br />
    <?php }else{ ?>
    <div class=”clear”></div>
    <?php } ?>

Så enkelt er det!

Egne felter (Add new custom field)

tirsdag, 13 juli 2010, 13:39

I WordPress kan du indsætte dine egne felter i indlæg og sider. Og det er ganske simpelt.

Et eksempel:

  1. Opret side eller indlæg (i Kontrolpanel)
  2. Skriv image i feltets Navn
  3. Skriv din html til dit billede i Værdi feltet
  4. I dit php dokument indsæt <?php echo get_post_meta($post->ID, ‘image’, true); ?>

Så enkelt er det!

NextGEN Gallery: unable to update thumbnail

mandag, 7 juni 2010, 21:39

You get the “Error updating thumbnail” when you crop and NextGEN Gallery tries to save the thumbnail.

The solution is to set your permission to write (/over write) on file level.

If you are using DreamWeaver:
1) Connect via ftp to your site
2) On your server navigation down to your thumbnails (default in wp-content/gallery/galleryname/thumbs)
3) Select all your thumbnails
4) Right click and select Set Permissions…
5) Set values to 666

File Access Properties in Adobe Dreamweaver

NextGEN Gallery: unable to edit thumbnail

mandag, 7 juni 2010, 21:38

When you manage gallery you can edit thumb of each picture. But you do not even get the cross to crop the image.

This is what you have to do:
1) Dashboard -> Gallery -> Options
2) Select Thumbnails
3) Check Set fix dimension

NextGEN Gallery: file reference

mandag, 7 juni 2010, 21:30

Design of album page
album-extend.php

Change tags text size
nggfunctions.php (line 936)

NextGEN Gallery: ændre den visuelle størrelse af tags

mandag, 7 juni 2010, 10:15

CSS: Størrelsen på tags i NextGEN Gallery ændres i nggfunctions.php linje 936.

HTML: Ændring af markup ændres i wp-includes -> category-template.php -> wp_generate_tag_cloud linje 683-684.

Lidt WordPress links

fredag, 4 juni 2010, 17:32

http://nextgen-gallery.com/

http://codex.wordpress.org/Dynamic_Menu_Highlighting

http://perishablepress.com/press/2008/12/17/wordpress-custom-fields-tutorial/

PS. Mest til mig selv :)

CCS li, Sliding doors

torsdag, 3 juni 2010, 18:22

http://www.alistapart.com/articles/slidingdoors/

http://css.maxdesign.com.au/listamatic2/horizontal04.htm