The get-the-id tag has no wiki summary.
1
vote
1answer
413 views
wp_get_current_user always returns 0 continued
I have been busting my head trying to get the user ID with every piece of code possible but it always comes back "0". Not sure what I'm doing wrong. I started out using this:
<?php $user_info = ...
0
votes
1answer
125 views
Wordpress returns the same Post ID every time everywhere!
There is something weird happening in a recent theme I have developed.
Inside the post page when I use $post->ID and get_the_ID() it always returns the same ID which belongs to one of my posts!
I'm ...
3
votes
3answers
3k views
How to get page's ID if I know the title only?
Is there an exact opposite funciton to this one:
get_the_title(ID)
I know there's:
get_the_id()
But it doesn't seem to accept any arguments.
So, basically, I'm looking for something like:
...