323 reputation
18
bio website
location
age
visits member for 2 years
seen Nov 27 at 17:39

Jan
5
comment How to prevent deleting of comments when deleting a post
The comments should stay in the database, i aggregate them with other comments which share the same meta value and they show all together on 1 relevant page. I intend to use it for a product comparison website.
Jan
2
comment how to show Author information in search results
Did my solution help you out? Please an answer once it's solved.
Dec
31
comment Assigning certain pages or posts to use the template of the parent page or category
Tell me if it works :)
Dec
25
comment Different permalink for posts and authors
I updated my original answer with some tests you can run..
Dec
25
comment Different permalink for posts and authors
After you add these rules visit the permalinks section to flush the rewrites.
Dec
23
comment How to prevent deleting of comments when deleting a post
While testing the above script i noticed that the posts did not get deleted in the theme i used before, they just vanished for some reason but they where still in the database and there was no recycle bin, it never showed me a recycle bin with deleted posts. I have now switched to another theme and i just noticed this theme moves them to the recycle bin AND the recycle bin showes up. Conclusion: I still need the code to prevent the deletion of comments. I can't use the code from my old theme since it never deletes the whole post (makes it invisible) and my whole databse would be cluttered up.
Dec
23
comment How to prevent deleting of comments when deleting a post
The code merges all comments from the post id's i specify in the array. I thought it would be of use for someone if i posted what i already have. I also said that it is the aggregate function.
Dec
10
comment Add a default meta_value to new posts
No problem, glad it worked out for you.
Dec
6
comment How to fix a double slash in custom permalinks with hierarchical taxonomy's?
That didn't work, i tried it in a few ways. I also used untrailingslashit. What did work is adding $chain .= "/"; after $chain .= get_taxonomy_parents($parent -> parent, $taxonomy, $link, $separator, $nicename, $visited); and removing $separator in this.
Dec
4
comment How to prevent deleting of comments when deleting a post
Edit: i just found out how to override functions. take a look here: catswhocode.com/blog/how-to-overwrite-wordpress-core-functions I also found out by testing the above script that the comments do not get deleted.