dieseltofo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Get latest attachment from all postsI’ve got this working partially with this code:
https://pastebin.com/ypyyjJDyHow to get post attachments from a specific post category?
Is there anyone who can help???Forum: Fixing WordPress
In reply to: Get latest attachment from all postsIt isn’t working and it has a syntax error.
The below code is working partially:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: Get latest attachment from all postsI’ve got this working partially with this code:
[Code moderated as per the Forum Rules. Please use the pastebin]Here is the code in action: Here
but there is a problem, I need attachments from JUST a specific post category… so whats next??Forum: Fixing WordPress
In reply to: Get latest attachment from all postsIts Secondary
Forum: Fixing WordPress
In reply to: Get latest attachment from all postsWell yes, but why it matters?
Forum: Fixing WordPress
In reply to: Get latest attachment from all postsHere is the “get the latest attachment” pic from current post.
<?php $args = array( 'post_type' => 'attachment', 'numberposts' => 1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ( $attachments as $attachment ) { echo apply_filters( 'the_title' , $attachment->post_title ); the_attachment_link( $attachment->ID , false ); } } ?>
what should I modify to get the latest attachment from ALL POSTS from a specific POST CATEGORY where category ID is 19 for example?
Forum: Fixing WordPress
In reply to: Get latest attachment from all postsJust one (latest/random) picture from each post attachments…
Forum: Fixing WordPress
In reply to: Google detects incorrect site languagethe site is https://www.autobonto.ro
Forum: Fixing WordPress
In reply to: Lightbox plus Just Stopped WorkingIn the lightbox Options panel The Demo is working fine, but on the site isn’t. here is a link https://www.autobonto.ro
Forum: Themes and Templates
In reply to: Can't truncate Post PreviewI forgot to mention that in the frontpage I resolved it with some workaround. I writed posts just with some introduction and redirected the post to a page where the whole content can be found for that certain post.
BUT the problem is in the car types page. For ex.: Opel Combo B (in the left sidebar). The whole Post is showing instead of excerpt.
At the Edit Post page if I write in the Excerpt block it wont appear. I think the problem is with the Template, but I cannot change it (too much work with it.)
Please give me some advice.
Sorry for the english.
Thanks!If you have the buddypress plugin installed, you have to disable it, and than try again. It worked for me.