| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 6 months |
| seen | 1 hour ago | |
| stats | profile views | 11 |
|
Mar 1 |
answered | W3 Total Cache Minify Rewrite Error with Wordpress on nginx |
|
Feb 26 |
awarded | Tumbleweed |
|
Feb 19 |
answered | creating front end image uploader that uploads images as posts |
|
Feb 10 |
answered | pagination does not work with query_posts. Help! |
|
Feb 1 |
accepted | Adding class to next/prev image link in attachment.php |
|
Feb 1 |
comment |
Adding class to next/prev image link in attachment.php yup 100% working, thanks |
|
Feb 1 |
awarded | Scholar |
|
Dec 26 |
awarded | Student |
|
Dec 26 |
asked | Adding class to next/prev image link in attachment.php |
|
Dec 3 |
comment |
How to re-post an old post? yeah, they are sticky posts. you can show multiple posts using carousels etc. check this tutorial pixel2pixeldesign.com/… |
|
Dec 2 |
comment |
Using has_tag() outside loop yes, you're right about has_tag. I was wrong. Its a simple solution you've mentioned above. my wrong information was the only problem. otherwise I already was using get_adjacent_post to get next post id. Thanks you |
|
Dec 2 |
answered | How to re-post an old post? |
|
Dec 1 |
comment |
Using has_tag() outside loop$posttags = get_the_tags($next_post->id);
if (!is_wp_error($posttags) && $posttags) {
foreach($posttags as $tag) {
if ($tag->name == 'mario') {
echo 'yup';
}
elseif($tag->name !== 'mario') {
echo 'nope';
}
}
}
I've tried this one too, but still its printing "yup nope" at post having mario tag. where as at pages with other tags, it prints nope only, which is fine. The problem is occurring only on mario tagged posts. |
|
Dec 1 |
comment |
Using has_tag() outside loop actually when I use for current post id. it works fine. the problem is I want to use it for $next_post->ID at mario page it prints both yup and nope |
|
Dec 1 |
comment |
Using has_tag() outside loop thanks, its working. but at mario page its printing both yup and nope. at other pages it is showing "nope" only, which means its correct here. |
|
Dec 1 |
revised |
Using has_tag() outside loop added 32 characters in body |
|
Dec 1 |
asked | Using has_tag() outside loop |
|
Nov 19 |
awarded | Editor |