The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
110 views

Best practice to limit results in get_row()?

This is my query to check if a title exists (it's in a loop, therefore [$i]). $wpdb->get_row("SELECT * FROM wp_posts WHERE post_title = '" . $titles_arr[$i] . "'", 'ARRAY_A'); Anyway, I would ...
1
vote
1answer
39 views

Get a row from a separate table by matching a posts meta_key to a tables ID column

I am trying to match a posts meta_key value to a separate tables column ID and call that row/array in the single-listing.php. I have a meta_key value that is called dot_number. The table is called ...
0
votes
2answers
750 views

Show post thumbs in rows instead of columns

I am displaying only thumbs and title on index pages using following code; <div id="column1"> <?php query_posts('cat=22&showposts=2'); ?> <?php $posts = ...
-3
votes
1answer
786 views

Display posts in row Horizontally [closed]

On index.php page, I am showing only thumbs and two custom fields. How can I set specific number of posts in one row like this one; http://www.whatmobile.com.pk
0
votes
1answer
152 views

Trouble with SQL SELECT inside switch_to_blog()

I'm using switch_to_blog() and restore_current_blog() to perform some functions across a multi site install. One of the things I'm trying to do is select a very specific post using get_row(). My ...