Hot answers tagged

2

This can become a quite an expensive operation which can seriously damage page load time. At this stage, your code is quite expensive. Lets look a better way to tackle this issue. What we need to do is to minimize the time spend in db, and to do this, we will only get the info we need, that is the post_author property of the post object. As we now, there is ...


2

Since it sounds like you're trying to do this without code I would do it this way: Create an 'Advertisement' post type which supports categories. Then use a 'Related Posts' widget that allows you to select custom post types as well as related categories. Possibly one of these And use the widget settings to call the appropriate Ad UPDATE: Not sure how clear ...


1

SOLUTION: So, it turned out (of course) I myself was causing the problem (...) I am getting the widgets with the 'the_widget()' method and sending the instance params along as I go. The params are query-string-style parameters and are of course 'glued' together with ampersands. Now , I wasn't encoding the individual params so the query string was looking ...



Only top voted, non community-wiki answers of a minimum length are eligible