| bio | website | visztpeter.me |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 9 months |
| seen | 13 hours ago | |
| stats | profile views | 13 |
|
May 17 |
comment |
How to set hierarchical terms to a post using wp_set_object_terms Thanks, yes, i know understand the logic, i just need to check & create the subcategory with wp_insert_term, and i just attach the term by id to the post |
|
Apr 1 |
comment |
Why does the page/post ID keep growing when i refresh the post-new.php file? Thanks, i don't worry about this then, but its still a little strange i think...:) |
|
Apr 1 |
comment |
wp_query select if have comments stackoverflow.com/questions/4829733/… - Look at the seconds answer, you just need to change the IF statement |
|
Jan 11 |
comment |
Filter taxonomy terms using multiple id in the edit-tags.php Thanks, works as excepted, i just needed to change post_tag to my taxonomy name. |
|
Jan 5 |
comment |
Set post date before 1970 Got it. Worth to mention though, that i have 25.000 books:) |
|
Jan 5 |
comment |
Set post date before 1970 Let me ask you, what do you think, is it a good enough solution to use a custom taxonomy for the years? I think i can create a custom sql query to sort the results based on the term name(because the db structure is basically the same with the post meta solution too) and i think its a little easier to manage the years+books in the backend. |
|
Jan 5 |
comment |
Set post date before 1970 Thanks! My client sent me an xml file with the books and i imported that into wordpress. I only have the years for the books so i decided to create a custom taxonomy for the years, but then i found out that i can't order the query based on this. But if i can order by custom field, then i guess its fine that way too. |
|
Jan 5 |
comment |
Repeatable custom meta fields I just write a comment, not an answer, but you should definitely take a look at the Advanced Custom Fields (advancedcustomfields.com) plugin. Seriously, this thing is awesome, i use it for every wordpress project i have. You have to pay for the repeater field addon, but the price is very low and you only have to buy it once and it does exactly what you want and of course a lot more. Just a suggestion:) |
|
Jan 4 |
comment |
Remove quick edit for custom post type Thanks! Alternatively, i can change the taxonomy to non-hierarchical when i'm on the post list page, because in that case its going to be an autocomplete input with ajax |
|
Dec 30 |
comment |
Custom columns for taxonomy list table Thanks, its working, but you forgot the $ before content = 'test' :) |
|
Nov 27 |
comment |
Using a custom WP_Query with get_template_part loop Ok, thanks. The reason i want to seperate them is because i want to use the same loop with other queries too based on other categories/taxonomies |
|
Nov 27 |
comment |
Using a custom WP_Query with get_template_part loop Thanks. Whats your opinion, which one is the better solution? |
|
Nov 27 |
comment |
Using a custom WP_Query with get_template_part loop If i remove the $books-> part it will use a default query so thats not good for me. |
|
Nov 25 |
comment |
List the 5 most recent child pages The edited version is a solution, but i think its a little overkill? Especially if i have hundreds of albums. Its working, so thanks. |
|
Nov 25 |
comment |
List the 5 most recent child pages I don't know the parent post. I want to list the most recent child pages from ANY parent page. |
|
Nov 25 |
comment |
List the 5 most recent child pages Sorry, its a bit confusing. Your first assume was right, i created a hierarchical post type called gallery. |
|
Aug 8 |
comment |
How can i add some static text above the editor? Thanks, its fine for me, but you have to admit, an action to insert some content or something else like that would be better:) |
|
Jul 25 |
comment |
How can i remove the posts category class names from body_class I just duplicated the get_body_class function to my functions.php, and if i change return apply_filters( 'body_class', $classes, $class ); to return $classes, it works fine. I guess something is using a filter to hook up those extra category classes, but i can't find it anywhere... |
|
Jul 25 |
comment |
How can i remove the posts category class names from body_class Yes, but i have 9 categories, so this solution is not exactly what i am looking for. But thanks:) Maybe i just remove the body_class function and add the category slug to the body... |
|
May 26 |
comment |
How can i maintain permalink structure and avoid a 404 error when loading external content? Yes, that was the problem, thanks! Maybe i can mess with the add_action location, like add_action=init to make this work from the functions.php |