applegateian
Forum Replies Created
-
Any fix on this? thanks
Me too…
Forum: Fixing WordPress
In reply to: Admin jQuery error on install "Uncaught TypeError: Object #…"Thanks Tmuka
In the parent theme, there are two instances in functions.php where if ( !is_admin()…. appears as below:
function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) { if ( !is_admin() || !is_super_admin() ) return false; if ( 'activity' == $_POST['page_on_front'] ) return 'activity'; else return $oldvalue; }if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) add_action( 'admin_notices', 'bp_dtheme_show_notice' );I’m not entirely clear where to add the code above, any thoughts?
The child theme functions.php is empty.
Thanks,
Ian
Forum: Fixing WordPress
In reply to: Admin jQuery error on install "Uncaught TypeError: Object #…"Hi guys
I am using BuddyBase child theme and have this problem. I have tried replacing the global.js in the theme with the Buddypress file as I read elsewhere, but this didn’t work.
I also tried adding the code above into functions.php, but again, no luck.
Any other ideas?
Thanks
Forum: Fixing WordPress
In reply to: Filtering posts by profile field – buddypressYeah it’s on there too….thanks
Forum: Fixing WordPress
In reply to: Filtering posts by profile field – buddypressScreenshot of the academic/professional filter
All can be ignored as this is the default setting.
Thanks
Forum: Fixing WordPress
In reply to: Counting the number of images in a postHi again
Thanks for the suggestion. Unfortunately this is returning a blank. Previously it was giving random numbers, now it just returns nothing.
Any other tweaks to this I could make?
Thanks again.
Forum: Fixing WordPress
In reply to: Counting the number of images in a postHey all, does anyone have any more suggestions on this? Still pulling back a ‘0’ count on this.
Thanks,
Ian
Forum: Fixing WordPress
In reply to: Counting the number of images in a postI believe it is in the loop – here is the code from the loop down…..The loop ends further down the page, but ‘imageCount’ is where I am trying to run this. Thanks for your help.
<?php query_posts('showposts='.$breaking_num.'&cat='.$breaking_cat.''); while (have_posts()) : the_post(); ?> <div class="homeFeatured"> <div class="featuredImageFrame"> <img src="<?php echo get_post_meta($post->ID, 'featuredimage',true) ?>" alt="Post Image" class="postimg" /> </div> <div class="imageCount"> <?php $id=get_the_ID(); $total_attachments = $wpdb->get_var("SELECT COUNT(ID) FROM {$wpdb->prefix}posts WHERE post_type = 'attachment' && ID=$id"); echo $total_attachments; ?>Forum: Fixing WordPress
In reply to: Counting the number of images in a postOK thanks…I tried dropping that in instead. Is there anything else I should change as it’s now returning the number 0 for all.
Just to confirm, this is on the home page so needs to work out that the snipped shown is post ID X
Cheers
Forum: Fixing WordPress
In reply to: Post pages not loadingSorry, how do I check?
Forum: Fixing WordPress
In reply to: Post pages not loadingHi there
Thanks for response, in the htaccess file I see this:
The server is set to 705 – what should it be?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /backend/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /backend/index.php [L]
</IfModule># END WordPress
Thanks
Forum: Fixing WordPress
In reply to: Formatting not working in pages and postsWeirdly, the plugin Polaroid Gallery was causing it. As soon as I upgraded it, it fixed the problem.
Thanks