Steven
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: I really need help! The the_content_rss has stoped workingRight… now I updated to 2.6 and had forgotten this issue, until I search here again.
Is there ANYONE that can make a statement regarding this issue?
I will keep bumping this post until I get a sane answer.
Forum: Themes and Templates
In reply to: Problems with article listing. Please help.An my code looks like this
<?php query_posts('showposts=6&cat=-235,15,19,-20'); while (have_posts()) : the_post(); $related_image_url = get_post_custom_values("related_image"); $related_alternate_image_url = get_post_custom_values("alternative_image"); $imgTitle = get_post_custom_values("image_title"); $imgHtml = nf_getImageHTML($related_image_url, $related_alternate_image_url, $imgTitle, ""); $loopcounter++; if ($loopcounter % 2 == 0) echo '<div class="articleBox_column2">'; else echo '<div class="articleBox_column1">'; echo '<a href="' . get_permalink() . '">'; echo the_title('<h1>','</h1>'); echo '</a>'; echo '<div class="catDate">'; /* echo the_category(); */ echo '</div>'; if(!empty($imgHtml)) { echo '<a href="' . $permaLink . '">'; echo $imgHtml; echo '</a>'; } ?> <span class="date">(<?php the_time('d.m.y'); ?>) </span> <?php if(empty($imgHtml)) echo the_content_rss('Les mer','', '', 40); else echo the_content_rss('Les mer','', '', 16); echo '<br /><a class="floatRight" href="' . get_permalink() . '">Les mer</a>'; echo '</div>'; endwhile; ?>
Forum: Plugins
In reply to: [Plugin: Wordtube] How do I programatically include the player?Exactly. I would also like to have a custom field for a specific page.
Have you tried the above code with a video list? I would like to list 5-6 videos and play these without having to reload the page.
Forum: Fixing WordPress
In reply to: Quick help with listing posts by titlePut values of custom fields in variables like:
$custom_field = get_post_custom_values(“name_of_custom_field”);Then you can write e.g.
<div>
<?php the_title() echo $custom_field ?>
</div>Forum: Fixing WordPress
In reply to: TinyMCE removes my HTML code in postsThanks. I will check it out.
Also found these links on the topic:
windows-live-writer-review-posting-into-wordpresscom Part 1
windows-live-writer-review-posting-into-wordpresscom Part 2Forum: Fixing WordPress
In reply to: TinyMCE removes my HTML code in postsA good WYSIWYG editor doesn not f*** up your code by switching views ;o)
If you work with tables or links, you don’t want to see the HTML code.
So…. does anyone have any good alternative?
Forum: Fixing WordPress
In reply to: Critical! I accidently deleted 25 posts. How can I recover them?No shit :o)
Luckilly Dreamhost takes snapshots of my DB every day, so I had an 11 hour old DB and I used that one.
Another trick can be to google.
I just googled “site:www.norwegianfashion.no” and a lot of my posts came up. But that is a ppor backup solution to depend on :pCrisis is over… for this time! ??
Forum: Fixing WordPress
In reply to: I really need help! The the_content_rss has stoped workingAfter some digging around, I went to the source.
the_content_rss function is loacted in the /wp-include/feed.php.The code is as follows:
function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content_rss', $content); if ( $cut && !$encode_html ) $encode_html = 2; if ( 1== $encode_html ) { $content = wp_specialchars($content); $cut = 0; } elseif ( 0 == $encode_html ) { $content = make_url_footnote($content); } elseif ( 2 == $encode_html ) { $content = strip_tags($content); } if ( $cut ) { $blah = explode(' ', $content); if ( count($blah) > $cut ) { $k = $cut; $use_dotdotdot = 1; } else { $k = count($blah); $use_dotdotdot = 0; } for ( $i=0; $i<$k; $i++ ) $excerpt .= $blah[$i].' '; $excerpt .= ($use_dotdotdot) ? '...' : ''; $content = $excerpt; } $content = str_replace(']]>', ']]>', $content); echo $content; }
I discovered that if I removed the line
$content = apply_filters('the_content_rss', $content);
it actually works.So the problem lies within the apply_filters function.
Does anybody have any experience with the apply_filters function?
Forum: Fixing WordPress
In reply to: I really need help! The the_content_rss has stoped working*bump*
Forum: Fixing WordPress
In reply to: I really need help! The the_content_rss has stoped workingCan anyone help me please?
Is there another way of showing the first 20 characters of a post?
I’m not planning on using Excerpt.Really need some help here guys.
Forum: Fixing WordPress
In reply to: Where are the custom fields files??I’m using the exact samt thing.
Here is my code:if (have_posts()) : while (have_posts()) : the_post(); /* Get attributes from post */ $related_image_url = get_post_custom_values("related_image"); $related_alternate_image_url = get_post_custom_values("alternative_image"); $related_url = get_post_custom_values("related_url"); $imgTitle = get_post_custom_values("image_title"); $imgUrl = ''; $imgHtml = ''; //If an alternate image is used, this will be used as thumbnail if (!empty($related_alternate_image_url[0])) $imgUrl = $related_alternate_image_url[0]; else $imgUrl = $related_image_url[0]; // Create image URL and add image text if it exsists // Identifies if the URL is for an external image or local image if (stristr($imgUrl, 'https://') == true){ $imgHtml = '<img src="' . $imgUrl .'" alt="' . $imgTitle[0] . '" />'; } else { $imgHtml = '<img src="' . get_option('home') . '/wp-content/uploads' . $imgUrl .'" alt="' . $imgTitle[0] . '" />'; } ?>
Make sure that your custom fields matches what you write in the code, in this case “related_image”: get_post_custom_values(“related_image”);
I don’t remember what tables in the DB stores the custom fields.
Forum: Fixing WordPress
In reply to: How to change size of font within postsIt’s not possible to tell just by looking at the CSS.
You have to look at the HTML and see what class the post is using.
Is our site published?Are you using IE 7? In that case you can download th IE Developer Bar. With that you can easilly see what classes the different parts of your page uses.
Forum: Fixing WordPress
In reply to: Adding variablesI just have a 4-5 weeks of experience with WordPress.
When it comes to variables, it goes down like this:You can use any variable you want for any post / page.
The value you enter in that varable is only valid for that specific post / page.
If you want a variable value from a different post / page, you first have to retrieve that post / page.I would strongly suggest that you take a look at some e-commerce plugins for wordpress. Will save you a lot of time and frustration ??
Forum: Fixing WordPress
In reply to: path for blogDo you have wordpress installed in the directory /teleconferencing-blog/? If yes, you should be able to access /wp-admin/.
Can you accesss /wp-admin/ from anywhere?
Forum: Fixing WordPress
In reply to: Can third level domains run on wordpressNever heard about third level domains. You have domains and you have sub-domains.
You can use whatever URL you want to run WordPress.