Wordpress 3.0
I want to have the contents of a specific post into a page by using the title of the post. As far as I can tell, I can't do it directly with get_post().
I can assume what the brute force way might be, but I suspect there's a more elegant way?
...
Hi all,
I currently have a site with a hard-coded list of categories & subcategories, where each item is formatted as follows:
<li class="cat-item open-access"><a href="/categories/open-access/">Open Access</a></li>
Importantly, each <li> item is assigned a class which matches the slug of the category linked to within.
I would obvio...
Hello,
The length of the excerpt in wordpress is 55 words by default.
I can modify this value with the following code:
function new_excerpt_length($length) {
return 20;
}
add_filter('excerpt_length', 'new_excerpt_length');
So, the following call will return just 20 words:
the_excerpt();
But I can't figure out how could I add ...
Hi I am trying to create 2 functions for a wordpress site: One to extract the src from an image in a post and one to get the post slug.
the goal is to place some code in an excerpt that looks like this:
<a style="background: url( extracted img src using a function ) no-repeat scroll 0 0 transparent;" href=" post slug using a function ...
Hello!
Wondering what the piece of code I can use to change the look of my sidebar for example how "categories" "tag clouds" and so put themselves in boxes? Right now many of them flush with the box (right), has been the center but it was not pretty. Does not own any idea what it might be to change, it is in the style sheet or in the si...
Hi
How can I check if the visitor who is currently reading a post has written a comment on that post?
...
i'm trying to create a portfolio website using wordpress,
each post has view costum fields, one of which is called type - with the value of "featured" or "not-featured"
now when user clicks on the post title - they go the the single.php to see the entire post, here i would love to display all featured thumbnails
i tried this
...
I have practically 0 PHP knowledge. I have a wp blog, I just published my first post, and when I try to use the comments, I get the following:
Warning: call_user_func(twentyten_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/erisdesi/public_html/wp-includes/comment-template.php on line 130...
hi
i am trying to get wordpress posts, 3 at a time, this is the code i'm using:
<?php while ( have_posts() ) : the_post() ?>
<?php if(get_post_meta($post->ID, 'feature', true) != true) {; ?>
<div class="show_col">
<?php for ($i = 1; $i <= 3; $i++) { ?>
<div class="set">
<a href="<?php the_permalink(); ?>" t...
I cannot understand this code that I got from a WordPress plugin to limit the content length.
function get_the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('get_the_content', $content);...
Hi,
I am using WordPress 3.0.1 and the Twenty-ten theme. Can someone pls let me know to to add spaces to this section of text in the Visual Editor.
HTML Editor Mode looks like this:
<p style="text-align: left; padding-left: 30px;">- With each visit each client will be provided with a full detailed<br />
report and invoice<br /...
In this page, I'm using the Contact Form 7 plug in (at the very bottom).
When I fill the form and press send the form stay loading forever.
Any suggestions?
code:
<p>您的姓名 〈需填寫〉<br />
[text* your-name] </p>
<p>您的電子郵件信箱 〈需填寫〉<br />
[email* your-email] </p>
<p>主旨<br />
[text your-subject] </p>
<p>您的信件內容<br />
[textare...
I have a category in Wordpress called News and would like to link to the next news page when viewing a story.
This is the existing code but will link to all posts, what should I add to make it just posts in the News category?
<div id="page-navi">
<div class="button previous"><?php previous_post_link('%link') ?></div>
<div class="butto...
At the moment I have my posts linking directly to the next one but need a solution to do the same with pages from the first level.
I thought it would be something similar to the code I'm already using.
Linking posts code:
Many thanks
...
I can't believe the number of bugs I have to sort out due to IE6...Can somebody have a solution to all the IE problem in WordPress ?
here is the file : http://www.notrepanorama.com/
you have to login to view it
http://www.notrepanorama.com/wp-login.php
login/ psw : test / test
NOW in firefox (real browser) you see the red box (top righ...
I need to change the height of some taxonomy boxes created by me (by register_taxonomy function) in admin area of Wordpress. Is there a way to do this ?
...
So I have this website that I run as a hobby and I am using Wordpress as the content management system, and now, I'm trying around different stuff as part of my posts, just to expand my horizons a little.
Now I learned some basic AJAX, like having XMLHttpRequest load an entire html page into a given div without reloading all the elemen...
Hi,
I want to have the expert opinion about the Wordpress Multisite Feature, the question is
Whenever Wordpress create a Network site it creates new table for the Network Site.
Why it does this?
Why it does not sotre the data in the already created tables?
Thanks
...
Hi,
Whenever I add a widget to the sidebar in Thesis v1.6, it seems to double up. For example, I will add a picture to the sidebar or text and they will appear twice one above the other. This happens for any widget on the sidebar.
Cheers
...
I am not sure if Wordpress has API to upload file but what I am looking for is very simple:
Context: I have another plugin that I need to modify so that user can upload file in the Admin area of that plugin
Solution:
1. Rewrite a new upload thru some specific path. This has nothing to do with Wordpress. I am fine doing this.
2. I prefer...