Toucouleur
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple page parentsSame need as jrm213
I’ve used pages to create menu, and some menu should have same items.
I’ve been trying “Redirections” plugin but it’s not the way I wish to work with my page management
Forum: Plugins
In reply to: Own plugin: how can I attach files to a post using wp_insert_attachmentfound myself the solution, but I’m really desapointed about the community here. Nor an advice or a question, I felt a bit alone ??
Forum: Fixing WordPress
In reply to: Lost subcategories under 2.3Michael, I have a dump if you are in need of… I got the exact same problem, and also, the solution was to create a new subcategory, and things have been corrected… if you need it mail me cedric _at_ toucouleur.fr
Forum: Your WordPress
In reply to: Theme review (Luxe)IE7 works I’ve to make a fix for those fucking IE6 users ??
Forum: Your WordPress
In reply to: New Toubeauty’s blogYeah ! Thanks to the Smashing Magazine for their choice of Toubeauty on their 45 Fresh, Clean and Impressive Designs !
n°18 => https://www.smashingmagazine.com/2007/03/05/45-fresh-clean-and-impressive-designs/ ??
Forum: Fixing WordPress
In reply to: Get the 1st post of a category and use the single content templateI just don’t like complicated solutions, I guess => it’s not so complicate. That’s just a way to make the navigation easier on a particular design
Look at the project https://www.toubeauty.com
(I still have a lot of work to do, but look at the 4 main categories). Just click on 1, 2, 3 or 4 (there are 4 different colors), and it gives you the last article of each category. For some SEO reasons, I don’t want when people go directly on a category to give them a list of all articles in the category.Each of those categories give you a particular way to get information on beauty’s world (or beauty salon).
As you can see, it’s not a normal trick, that’s a designer’s trick I was in need of.
thanks for your help Moshu (but you didn’t tell me if your nickname has anything to do with a cartoon ;))
Forum: Fixing WordPress
In reply to: Get the 1st post of a category and use the single content template[auto reply mode on] : https://www.ads-software.com/support/topic/66202?replies=6
here is the trick (or tip, sorry for my lack in english :))
$wp_query->is_single = true;
$myposts = get_posts('numberposts=1&category='. $wp_query->query_category_id);foreach($myposts as $post) :
setup_postdata($post);force WP to use this page as a single_page by using $wp_query->is_single
Did I say I love how WP is coded ? ^^
regards and warm thanks to Moshu althought I always have a search engine URL instead of a reply whenever I post here ^^
Forum: Fixing WordPress
In reply to: Get the 1st post of a category and use the single content templateI love the way you’re used to answer Moshu ?? (is your nickname has anything to do with the dragon on a Disney cartoon ? ;))
Ok, so let’s talk about the hack.
I’m still working on a solution an tryed to use
$myposts = get_posts('numberposts=1&category='. $wp_query->query_category_id);
foreach($myposts as $post) :
setup_postdata($post);
(i used a trick in header.php to use $wp_query->query_category_id but it’s not a normal variable)
my problem is setup_postdata($post) can’t retrieve the comment data, can it ?
ps : Moshu, i will close the topic as soon as I’ve been able to solve my problem, I promest
Forum: Fixing WordPress
In reply to: Get the 1st post of a category and use the single content templatelink corrrected, but I’m not sure you fully read my question.
AS I sayed I already spent hours to search for a solution, and believe me I already know how to use internal search engine of the present message board.
I’m able to retrieve the first post of a category, what I can’t undertstand is why I can’t retrieve the comments and so within the loop :/
Forum: Plugins
In reply to: UTW Tags Not Pulling TagsI ust send a reply on this topic to notice to whome who are not able to retrieve their tags because of the lenght of their post, you can add a small patch described here : https://my.opera.com/Toucouleur/blog/ultimate-tag-warrior-droit-internet
If you have Request-URI Too Long : The server will not process the request because its request URI is too large.
It’s the solution for you
Forum: Fixing WordPress
In reply to: How to remove the “category” in the link ?thanks for the answer Otto, it’s a mess whatever ?? but thanks for spending time to explain :/
Forum: Fixing WordPress
In reply to: How to remove the “category” in the link ?moshu, sorry for bothering, and excuse my lack in english, It was not my intention to be rude in my question.
I understand it must exists but I Can’t still understand with my both URL actually works. The page for exemple : https://lasante.net/voyage-et-sante/bienvenue/ is a page not an Article, and it also works.
The only thing I tryed to understand is “ok it must exists, but can’t we remove it, if it’s not absolutly necessary ?”
thanks again for you help
Best regards from France, and merry christmass to you all
ps : xinfo what “th” is ?
Forum: Fixing WordPress
In reply to: How to remove the “category” in the link ?Otto why https://lasante.net/voyage-et-sante/category/divers/ work also here ? https://lasante.net/voyage-et-sante/divers/
it seems rewrite rules still work without “category”, so ?
Forum: Fixing WordPress
In reply to: How to remove the “category” in the link ?already done moshu they asked me to post here ??
Forum: Fixing WordPress
In reply to: User submit link tool ?up last time
still need to fin a plugin from which users could post/submit their own links…
thanks ??