dunkkan
Forum Replies Created
-
Forum: Plugins
In reply to: Quoting all excerptsOk, I can do it with the custom excerpt field in the Editor … oups hehe, well ! sorry
Anyway if anybody knows how to do it automatically it could be great.
Forum: Plugins
In reply to: Sort posts by tag in sidebar ?(The tagged posts wouldn’t belong to the main current post : just a template where to have a normal loop + some asides)
by the way, I’m gonna look at some asides plugin ??
Forum: Fixing WordPress
In reply to: display posts matching two categoriesThanks mfsearer !
Forum: Plugins
In reply to: “you come to this page from the post with the title ‘…’ “Save the last page visited as a variable in php ?
(sorry for the persistence).Forum: Plugins
In reply to: “you come to this page from the post with the title ‘…’ “In fact, is making the_excerpt process inversed.
From the permalink to an excerpt, eslewhere.Could I ‘capture’ a postID in single.php, and use it when the visitors go elsewhere, for exemple, with a query_posts tag ?
Could the ‘navigation between posts’ (a paginated site) give some solution to this ?
Maybe building a ‘second’ single.php where join excerpt-of-the-last-visited-post + other things ?
I’ll be looking at it (with my limited knowledge). If anybody have some idea, please don’t hesitate.
Forum: Plugins
In reply to: Include by default a shortcode in postsanybody ? I really don’t know how to build a function which can do that.
Forum: Plugins
In reply to: Category ManagementHi Lars, here there’s a plugin which can make it easier I guess. (English section in the second half of the page, unless you are german-speaker!)
Good luck.Hi, make sure you have write/load [gallery] also in your post, because only writing it in the template won’t work.
This ‘order’ just search for the shortcode in the post while the loop starts, to put the gallery elsewhere.
I give this answer ’cause I’m pretty able to forget it ??
Forum: Plugins
In reply to: Include by default a shortcode in postsI guess it would look like something like this/
function adding_your_shortcode($content) { $yourshortcode = '[contact-form]'; SOMETHING MAGIC HERE($yourshortcode); return $content; } add_filter('the_content','adding_your_shortcode', '10');
Maybe something similar ?
I just don’t know which php actions can I use to insert the shortcode (the SOMETHING MAGIC section).Thanks if anyone can answer.
Forum: Fixing WordPress
In reply to: Show latest 10 posts, but split into 2 columns?Hello,
You can do it with the get_posts function.<div id="column1"> <?php $posts = get_posts('category=WHATEVER&numberposts=5'); foreach($posts as $post): setup_postdata($post); ?> <?php the_content(); ?> <?php endforeach; ?> </div> <div id="column2"> <?php $posts = get_posts('category=WHATEVER&numberposts=5&offset=5'); foreach($posts as $post): setup_postdata($post); ?> <?php the_content(); ?> <?php endforeach; ?> </div>
In ‘category’ you set the cat’s number. I believe you can use too ‘categoryname’.
In your CSS you set the width and position of your columns.
Don’t forget to fill, in the second column, the adequated offset for it.
Logically you can complete the php calls with the_title(); the_author(); etc.Hope that helps.
Forum: Fixing WordPress
In reply to: display posts matching two categoriesLike James Brown would say…
“Pleeeease, pleeeease, please, please…”
Forum: Themes and Templates
In reply to: Display thumbnail of first attachmentHello, I’m trying to do exactly that but, which could be an example of the use of the
$attachment_id
? Just for print the thumbnail i.e. ?Forum: Fixing WordPress
In reply to: How to get a picture per post?hellooooooo … sorry for the lapsus.
Did you try some CSS to push the image above the headline ?
You insert the image in your post normally.
You give a class to the div where the posts will be displayed.Then in your CSS:
.aboves {position:relative;bottom:2.5em}Forum: Plugins
In reply to: attachments associated with a postHello, I worked with some CSS for that layout, to avoid setting multiple loops.
But even then, it seems like sometimes the code doesn’t scan for the attachment in the post …In some posts works like a charm, but in others the attachment keeps hidden.
Any idea ?
Forum: Fixing WordPress
In reply to: Adding a thumbnail?Hi Cassel,
In version 2.6, in the Media Uploader, must be an option which allows to leave the ajax mode and upload the files in the ‘old way’. That should work, because I had the same problem.Then, for the thumbnail size, there’s normally the three options : full, medium or thumbnail, like in 2.5.
Anyway, you should be able to modify the ‘pirate’ full sized image in the post editor, just putting the mouse over it and selecting the little ‘image editor’, side by side of the ‘cancel image’ option.
Hope that helps