| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 6 months |
| seen | Jun 13 at 20:57 | |
| stats | profile views | 13 |
|
Feb 19 |
awarded | Editor |
|
Feb 19 |
revised |
Wordpress loop: Display <div> if posts exist extra line to avoid scroll bar in code |
|
Feb 19 |
asked | Wordpress loop: Display <div> if posts exist |
|
Feb 13 |
awarded | Scholar |
|
Feb 13 |
accepted | How to retrieve the slug of current page? |
|
Feb 13 |
answered | How to retrieve the slug of current page? |
|
Feb 13 |
comment |
How to retrieve the slug of current page? Thank you. Your solution works great. Just need to echo the slug: <?php
global $post;
$post_slug=$post->post_name; echo $post_slug;
?> |
|
Feb 13 |
asked | How to retrieve the slug of current page? |
|
Feb 7 |
comment |
Non-threaded comment replies with link to original comment I have solved the problem after a lot of trial and error. The trick was to get the pieces of code in the right order and places in the comments and functions files. The s in %1$s means that the argument is treated as and presented as a string. This is explained in detail in the php manual for the the sprintf function: php.net/manual/en/function.sprintf.php |
|
Feb 5 |
asked | Non-threaded comment replies with link to original comment |
|
Feb 5 |
comment |
Magazine style frontpage with multiple categories/loops and no duplicate posts Thank you very much Brian. I will have a look at your suggestion. I have found a working solution at: wprecipes.com/… |
|
Dec 11 |
asked | Magazine style frontpage with multiple categories/loops and no duplicate posts |