The get-row tag has no wiki summary.
0
votes
1answer
24 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
29 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
443 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
456 views
Display posts in row Horizontally
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
132 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 ...