delete_post_link()
2010-01-16 @ 14:55I have created a function called ”Delete Post Link”. If you are logged in you will see a link which allows you to delete the current page or post, even without visiting admin.
I have created a function called ”Delete Post Link”. If you are logged in you will see a link which allows you to delete the current page or post, even without visiting admin.
Normally the get_the_content() tag returns the content WITHOUT formatting. I found out a solution in Wordpress core to make get_the_content() tag return the same content as the_content().
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16387 bytes) in
hi, do you also know how to output the content without using wordpress functions directly out of the database eg using echo?
This is excellent, thank you very much!
I created a function that returns the depth of a page or category. The depth is how many levels from the root the page or category in its hierarchy. The root level number is 0.
i think it.s more that ok , i just tested with your kind of depth , cat->subcat->subsubcat->posts and work super duper ok ! i allso used "Collapsing Categories" plugin to [...]
How failsafe is the function for the depth of category? I mean, because it depends on the ID. I have to make a website with more than a thousand categories: [...]
[...] tutto qui: http://www.devdevote.com/cms/wordpress-hacks/get_depth Tweet Comments [...]
The function converts a post / page name to a post /page ID.
Agree with Rama. Even get_by_postname would work...good for anti-collision in a plugin.
Thank you!
btw, why wordpress does not include this function?
I created a function that returns an URL when sending a post / page name as an in parameter. Put the function into your functions.php in your theme folder.
This piece of code is great. But if you have made significant revisions to the page (like changing the slug) it gets messed up and shows a slug such as [...]
This solved a problem for me - many thanks!
I'm using this function on a page to go link back to another page, by name, within the loop, with no problems. However, on a post, within the loop, [...]
I created a function that returns a value depending of the input type. Put the function into your functions.php in your theme folder.
thanks jen , its work for me , i have try it at my categorie page
Wordpress have a built in function called get_currentuserinfo. A global variable is set. It calls a function to get the user information. It then echos the username. The code is not as short and easy as it could be.
Hi, this is a great piece of code, thank you! :)
Since you say if we have any ideas we can write a comment and you’ll look into it, I have [...]
Thanks man... this was just what i was looking for...
:)
Try this:
echo get_user(‘email’);
Wordpress have a ”bug”. It doesn’t add a current_cat_ancestor class to the wp_list_pages function. If you need it, you can use the code below.
Can modify with css tab navi manu?
I put the code in my functions.php file, then got this error: syntax error, unexpected ';', expecting ')'
The error is in the line Phil is referring to above.
I changed [...]
maybe you can help with this: how do I get a parent-cat class added in to all categories that have children in the normal wp_list_categories. This above code works well [...]
I want to use SQL-querys within the Wordpress loop and still be able to use the template tags. Here is the solution.
I had a different problem, but your solution to your problem helped me a lot. Thank you.
While we are talking about Use SQL-querys in the loop - WITH template tags - Multiple WP query objects / queryposts combined | devdevote.com, Another great option is to use [...]
REferring back to your original post on Stack Overflow... couldn't you use the following:
$my_query = new WP_Query(array('post_parent' => 3, 'post_type' => array('post','page')));
usually works for me...
What I don’t like with wp_list_pages is that you can’t exclude or include pages by NAME. Only by ID is available. Here is the solution.
Yes Jens! Yes!
Are many days I'm looking for this solution!
It was impossible to find information about what you wrote.!
Thanks!
From now on you have a new user who follows your website.
Big [...]
2010-11-30 @ 06:01
I get this:
Are you sure you want to do this?
Please try again.
May be need to add some other parametr, like "confirm=yes" ?