bonanza9
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpit’s nice to hear that others have had similar problems!
thanks so much for your help.b9
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpi tried a single line statement first, and had problems – maybe because of the differences between get_bloginfo() and bloginfo(). it all works like a dream now, even when in separate <?php ?> tags – thanks a lot.
(i still think its a little wierd that it can break (near enough) the whole system – oh well)
thanks again
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpok, well i’ve taken out all the functions i was using, bar one, but for this demonstration, i’ve included your ‘my_file_get_contents()’ function:
https://wordpress.pastebin.ca/1236477
if i use this functions.php it breaks wp totally.
edit: i’ve just tried to include both functions within the same <?php ?> tags and it seems to work ok…for now…
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpthe function i posted works, but actually whenever i add a second function to functions.php, it breaks wordpress (i get all the problems detailed above)!?
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpturns out it was a faulty function in functions.php
any idea what the problem with this is:<?php function flickr_badge($category_name) { $badge_url = 'https://www.flickr.com/badge_code_v2.gne?count=5&display=random&size=s&layout=h&source=user_tag&user=77992252%40N00&tag=' . $category_name; $badge_html = file_get_contents($badge_url); preg_match_all("/<a.*a>/", $badge_html, $match_a); foreach($match_a[0] as $div) { echo str_replace("></a>", "/></a>", $div); } } ?>
?
$badge_url is simply an address from flickr that images tagged with $category_name
cheers
b9
Forum: Fixing WordPress
In reply to: Category description strips html tagshtml comments are still filtered out. any idea how to stop this? – i’d like to make my own <!–more–> function for descriptions…
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpok – i binned off MAMP and reinstalled it, as well as wordpress.
i can login now, but still having the problem of blank update pages?!
post.php, page,php, link.php, categories.php, edit-tags.php…all blank when i add or edit a post, page, link etc…
edit: i’ve narrowed it down to be a problem with my theme! i’ll let you know exactly what the problem is when i find out!
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpthanks for your reply.
when i edit or write a post, it gets posted correctly; and if i press ‘back’ the content is there.
how do i check the server log?
thanks again
b9
Forum: Fixing WordPress
In reply to: Customizing my bloghey,
it’s probably best that you look through the documentation to get a feel for the way wordpress works. there’s some excellent stuff to get you started.looking through this page, for example may help. for items such as forums etc you may want to look at plugins…
my advice would be to make sure you’ve done your work with the documentation first (then search on here before starting a new thread) =)
hope that helps
good luck with your blog!
b9
Forum: Fixing WordPress
In reply to: blank post.php, categories.php … any-update-redirect-page.phpim on os x 10.5.4, running mamp 1.7.1 for the php(5) and mysql stuff.
quite strange really – considering all was well, then suddenly it goes a bit funny.also my post editor is playing up – it only displays an html editor (even tho the ‘visual’ tab is highlighted)?? not sure if that is related to this problem??
?
edit: ARGH! what’s going on!? – it seems to be falling apart – wp-admin/ is blank now – i can’t login!
Forum: Fixing WordPress
In reply to: Author profile page – no posts – permalinks…?hey, thanks.
in the end, i decided to have all the authors on a single page:
<?php // display user profiles function show_user_profiles() { global $wpdb; $users = $wpdb->get_col("SELECT * FROM $wpdb->users WHERE user_login <> 'admin' ORDER BY user_url"); foreach($users as $user) { $user = get_userdata($user); echo '<li id="' . $user->first_name . '"><h3>' . $user->first_name . ' ' . $user->last_name . '</h3>'; $image_url = get_cimyFieldValue($user->ID, 'PROFILE_PIC'); if(!empty($image_url)) { echo '<img class="float_left" src="' . $image_url . '" />'; } else { echo '<img class="no_profile_pic float_left" src="https://farm4.static.flickr.com/3295/2955717038_233f4b54bc_o.gif" alt="No profile picture" />'; }// close get image if if(!empty($user->description)) { echo '<p>' . $user->description; } else { echo '<p>This person does not yet have a biography'; } echo '<br /><strong>Email: </strong><a href="mailto:' . antispambot($user->user_email, 1) . '">' . antispambot($user->user_email) . '</a><p/>'; echo '</li>';}// close foreach }// close show_user_profiles function ?>
thanks for your answer – i’ll check it out
b9
Forum: Fixing WordPress
In reply to: Visual Editor Formatting Problemsame problem. i am also getting ‘blank’ update pages (such as post.php…) which may be related?
anyone who how to fix this without spending money??
Forum: Fixing WordPress
In reply to: query_posts, WP_query…getting confusedthanks for your response.
i decided to do this instead:<?php $home_blurb = new WP_Query('p=188'); ?> <?php while ($home_blurb->have_posts()) : $home_blurb->the_post(); ?> <?php $do_not_duplicate = $post->ID; ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1><?php the_title(); ?></h1> <div class="entry"> <?php the_content(); ?> </div>
that i found on:
https://www.jek2k.com/wp/index.php/2006/10/30/wordpress-displaying-content-outside-the-loop/
thanks again.