xdesi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Paged CommentsWhat do you mean as a guestbook?
It is working fine for me, ensure you’ve modified the config file correctly to your needsForum: Fixing WordPress
In reply to: How to Call a Custom Field in Head?Hey Thanks again, I had no luck, i tried:
query_posts(array( 'cat'=>'11', 'tag_slug__in'=>array('tag 1', 'tag 2'), ) );
This doesn’t display anything at all.
But
query_posts(array( 'cat'=>'11', 'tag_slug__and'=>array('tag 1'), ) );
Will display the posts containing tag 1 as mentioned earlier.
Forum: Fixing WordPress
In reply to: How to Call a Custom Field in Head?Thanks Otto this is just what i required. Many Thanks.
If you happen to read this, i was wondering if you could help me with a problem i’ve had for some time. I’ve searched and posted without reply, Basically i have:
query_posts(array(
‘cat’=>’11’,
‘tag_slug__and’=>array(rgrg)This works correctly for 1 tag, but how do i search for more than 1 tag, so it displays all posts containing the tag rgrg and all the posts containing another tag? I think i saw a report compiled yourself on a problem with this, and how to solve it but i could not understand it??
Forum: Fixing WordPress
In reply to: Add rel=”NoFollow” wp_tag_cloud?Why don’t you just use a robots.txt file and dissalow /tag or whatever it is you are worried about?
Forum: Fixing WordPress
In reply to: Move the default summary blog page to /blog/ ?Hmm could you explain this a bit futher sorry,
You have:
https://www.yoursite.com
and https://www.yoursite.com/blog/and what you want is to display recent entries on https://www.yoursite.com or https://www.yoursite.com/blog?
Where is your blog installed (where did you upload all the files to) under https://www.yoursite.com or https://www.yoursite.com/blog
Forum: Fixing WordPress
In reply to: Search for more than 1 tag (tag_slug__and)I am sorry for the bump but can nobody help me with this simple problem? I have tried searching but could not find an example in relation to mine??
I tried using tag_slug__or’=>array(‘a’,’b’)
But this just returns all posts not the ones with the tag a or the tag b.
I tried using tag_slug__and’=>array(‘a’,’b’)
This returns nothing at all.tag_slug__and’=>array(‘a’)
Works. But i want to display posts from multiple tags, so with tag a or tag b or tag c etc etc….Forum: Fixing WordPress
In reply to: Simple PHP ProblemIt works but not how it should.
OK let me try and describe this the best i can. Here is the code in it’s shortest form.
<?php rewind_posts(); query_posts(array( 'cat'=>'5', 'tag_slug__and'=>array(the_title()), ) ); while (have_posts()) : the_post(); the_content(); php endwhile; ?>
OK what this should do is search for all posts from cat 5 with a tag the same as the title of this post (lets say the title of the post is “football”) and then display the content from those posts.
However this does not work instead it just displays the title of the posts found in non-formatted text.I can confirm that the code correctly works if i simply enter the title of the post in plain text such as (‘football’). So why does it not work with (the_title()), if the title of the post is football. i should be getting the same results. I need it to be dynamic.
Forum: Fixing WordPress
In reply to: Modify Google Ad on Post using Custom FieldWell one option you could do is on your single.php add this after the loop:
$adlong = get_post_meta($post->ID, ‘AdsenseL’, $single = true);
and then in sidebar.php put:
<?php
if($adlong !== ”) { ?>
Code for Long Adsense AD<?php }
else { ?>Code for Short Adsense Ad
<?php}?>
and the in custom field call it AdsenseL and just put Yes in the value and it will display a long ad if this key isnt present it will display short ad.
Forum: Themes and Templates
In reply to: Query Posts Combination and Repeat HelpThankyou very much this has worked a charm the comments box now appears and footer was missing a div as you suggested.
I can only thankyou for your help at this time Simon if i ever get rich i will be sure to donate in the future!
Many Thanks.
Forum: Themes and Templates
In reply to: Query Posts Combination and Repeat HelpOK basically on my site i have like 3 sections: videos, pictures, bio.
When i write a post about a person in the BIO section, underneath the content but before the comments i want to display the thumnbail of posts about this person from the other two sections (videos and images).
So the layout of single.php fot the bio secton will be:—THE MAIN CONTENT OF THE BIO DESCRIPTION OF THE PERSON—
—THEN I USE QUERY TO RETREIEVE THUMBNAILS AND TITLES OF VIDEOS RELATING TO THIS PERSON—
—THEN I USE QUERY TO RETREIEVE THUMBNAILS OF IMAGES AND TITLES RELATING TO THIS PERSON—
—THEN I WANT COMMENTS FORM FOR THE BIO—
I try to put my queries in before the comments section on single.php and it displays the thumbnails as expected but then the comments form does not display and also my footer seems to mess up?
Forum: Themes and Templates
In reply to: Query Posts Combination and Repeat HelpSorry for the bump but here is where I am currently at:
<?php rewind_posts(); ?>
<?php My Query?>
<?php while (have_posts()) : the_post(); ?>
Display whatever
<?php endwhile; ?>
<?php rewind_posts(); ?>
<?php My Query 2?>
<?php while (have_posts()) : the_post(); ?>
Display whatever
<?php endwhile; ?>I can repeat this and put it in my single.php, but it seems to mess up my footer, and also no comment box is displayed at the bottom?
Forum: Themes and Templates
In reply to: Query Posts Combination and Repeat HelpMany Thanks for the link you provided it was just what i was looking for.
Now i just need a bit of help with part 2 of my question. You see i was wondering whether it was possible to do multiple loops inside a post (single.php), display whatever i wish from the post and also have comments at the bottom as usual.
I can’t find where to put the:<?php rewind_posts(); ?> <?php my query?> <?php while (have_posts()) : the_post(); ?> My Content to show <?php endwhile; ?>
inside the single.php, as this has different layout. (default kubrick single.php i am talking about btw.)
Again many thanks for such a quick and effective response i really appreicate it!!!
Forum: Everything else WordPress
In reply to: Analytics IssueSimply just paste the code given by analytics before the </body> tag on the footer.php file… on most templates this would be after the line
<?php wp_footer(); ?>
Forum: Fixing WordPress
In reply to: bogus links are embedded in the end of my postsMaybe someone can provide more information but all i can suggest from my limited experience is to ensure you have Akismet activated in your plugins panel as it is a SPAM filter..
It seems like someone may have hacked or edited your files somehow maybe through allowing html in comments i’m not sure maybe someone else can shed more light on this.
Forum: Fixing WordPress
In reply to: 2 questions (private posts, how to shorten posts)?1. I’m not sure you would have to set up access rights so that only members could view it, or even allow a certain IP address if its within a university or something..
2. Yes as suggested above just click the button when you want to split the content.