Forums

Magic Fields
How to speed things up? (2 posts)

  1. ivantus
    Member
    Posted 1 year ago #

    Hi everybody. I'm using MF for a while now and I am very satisfied with it. I have one issue though and I hope someone can help me get this solved. I've created a couple of custom fields using MF. Every post has the same custom fields and I call 10 custom fields per post on a category page. The problem is - the category page is loading very slow since my site is showing 20 posts per category (it has to be that way). If this can help I have 433 queries for the category and the loading time is more than 3 secs. For every custom field I use something like this:

    <?php
    $address = get_post_meta($post->ID,'address', true);
    if($address) {
    echo get('address');
    } else { ?>–
    <?php }
    $city = get_post_meta($post->ID,'city', true);
    if($city) {
    echo get('city');
    } else { ?>–
    <?php } ?>

    Like I said, every post has around 10 of these functions. Since I am no professional programmer I'd be very grateful if someone is willing to share a better solution to achieve this.

    Many thanks

    http://wordpress.org/extend/plugins/magic-fields/

  2. ivantus
    Member
    Posted 1 year ago #

    Does anyone has an idea? I really need help on this. Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic