Jump to content

bondigor69

Members
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

bondigor69's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It works but the color doesnt show. if I check the source. it prints out style="color: $randColor"
  2. the actual post tags http://codex.wordpress.org/Function_Reference/the_tags
  3. hey guys what i'm trying to accomplish is show the post tags each in different background color. what I got so far is this 2 pieces <?php $rand = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); $color = '#'.$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)]; ?> <?php the_tags('Tags: ', ', ', '<br />'); ?>
  4. yeahhhhh man you're amazing. thank you so much it works fine for me
  5. I have a parameter "q" in url mysite.com?q=keyword I want to get the "q" value and insert it here <?php $rss = new DOMDocument(); $rss->load('http://wordpress.org/news/feed/'); ?> instead of news.
  6. hey guys I want to add <?php echo $_GET["q"]; ?>[/indent] instead of "news" in this PHP code <?php $rss = new DOMDocument(); $rss->load('http://wordpress.org/news/feed/'); ?>[/indent] How can I do that Thank you for help If someone posts a solution,
  7. I want to store the results in MYSQL or even easier in a flat file database and after get the count there BUT how can I do that
  8. Hello guys. Im not that good in php, just learning and I try to make a simple script. I want to count how many times an image has been clicked on each URL and echo the count beside the image. I have the same Image on each url(share image) Please help It has been 2 days that Im looking around and writing scripts. :'(
  9. hello guys I have this code from wordpress CODEX http://codex.wordpress.org/Function_Reference/get_the_tags <?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ' #'; } } ?> And I split the tags with # And there is the tags (wordpress #codex #howto #blabla #) The dash separates the tags!!! How can I put the # before each Tag instead separating the tags with the dash
  10. hey guys im using wordpress and In every post that I have there is a price <strong>Online Price</strong>:$ 20.00<br> <span style="color: red;">Your Price</span>:$ 17.91<br> I want to get the second price (17.91) without dollar sign and space and ECHO it somewhere else. Can someone help me please PS every post have the same HTML above only price changing
  11. Hey guys I have this php script it is for wordpress(shortcode) function HelloWorldShortcode() { return '<p>Hello World!</p>'; } add_shortcode('helloworld', 'HelloWorldShortcode'); What I need is modify the script,so the keyword choice is done differently. whenever I write the shortcode, the script should return different values. Now it only return Hello World!, but I want it to randomize between {Hello World|Hello People|Whats Up} Sorry for my english and thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.