I am trying to get the ID of a particular post that is replicated onto various blogsites in a network. The code below works to give me the blog ID, but, the blog URL is shown onscreen without the echo command being invoked. What do I need to change?
Wordpres PHP Help Needed
10
I am trying to get the ID of a particular post that is replicated onto various blogsites in a network.
The code below works to give me the blog ID, but, the blog URL is shown onscreen without the echo command being invoked. What do I need to change?
I have been unable to get it to work without including the blog URL from bloginfo.
The code below works to give me the blog ID, but, the blog URL is shown onscreen without the echo command being invoked. What do I need to change?
I have been unable to get it to work without including the blog URL from bloginfo.
Code:
$ varname = url_to_postid(bloginfo('url') . '/category-slug/post-slug/'); - Steve Fleming
- [ 1 ] Thanks
- [1] reply
- Kirk Ward
- SteveJohnson
- [ 1 ] Thanks
- [1] reply
- Kirk Ward
- rft16
- [ 1 ] Thanks
- [1] reply
- Kirk Ward
- RebeccaBaylies
- WebdevelopmentGroup
Next Topics on Trending Feed
-
10