[Plugin: Magic Fields] How to speed things up?
-
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
The topic ‘[Plugin: Magic Fields] How to speed things up?’ is closed to new replies.