nasirmajor
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: admin panel style problem–one column screen layoutno reply yet :(….
Forum: Fixing WordPress
In reply to: just user own attachments should be viewable in adminpanelits done! by declaring global variable wpdb and using custom query.
and replacing following lines
———
if ( is_array($GLOBALS[‘wp_the_query’]->posts) )
foreach ( $GLOBALS[‘wp_the_query’]->posts as $attachment )
$attachments[$attachment->ID] = $attachment;———
with following lines
———
global $wpdb;$countResult = $wpdb->get_results( “SELECT * FROM wp_posts where post_author=3 and post_type=’attachment'” );
if (is_array($countResult))
foreach ( $countResult as $attachment )
$attachments[$attachment->ID] = $attachment;
===========================of course you can replace 3 with logged in post_author id.
Forum: Fixing WordPress
In reply to: how to get post_author inside loopgot it using
$post->post_author
Forum: Fixing WordPress
In reply to: wp_list_cats in headerThanks dear Moshu
the problem is solved
it was the problem of theme header code before <html> tag. i replaced it with the default theme headers code and problem was resolved.