post_ID within a php function
-
Hello,
I am totally not known with php, but try to integrate Twitter with the comments.
The idea is that you can click a link which generates a hashtag on Twitter. And under each article I wanna publish the tweets with the specific hashtag.
I solved the publishing, which look like:
Use hashtag #MR_<?php the_ID(); ?> or <a href="https://twitter.com/home?status=MR_<?php the_ID(); ?>">click here</a><p>
Now I wanna use WordPress built in rss reader to pull the comments on Twitter.
<?php include_once(ABSPATH . WPINC . '/rss.php'); wp_rss("https://search.twitter.com/search.atom?q=MR_<?php the_ID(); ?>)", 10); ?>
That doesn’t work. I read that you can’t nest php functions. How can show an specific rss-feed under each article?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘post_ID within a php function’ is closed to new replies.