1,880 reputation
1313
bio website maxyudin.com
location Riga, Latvia
age
visits member for 2 years, 7 months
seen Aug 15 at 7:03

Nov
28
comment Show content after the first and second paragraph
@Michael, do you want to use it on per post basis?
Nov
28
answered Show content after the first and second paragraph
Sep
26
comment Dynamically assign same page template to child page as parent
If the code is working, please mark it as the accepted by clicking on the check box outline to the left of the answer.
Sep
26
answered Stop WordPress from showing images on non post pages
Sep
26
answered Dynamically assign same page template to child page as parent
Sep
26
comment wp_logout logging everyone out instead of just the user that clicked the logout link!
After update: It's impossible to force somebody to logout because logout happens in current user browser only (by deleting browser cookies). Session information is not stored somewhere else, e.g. database.
Sep
26
comment wp_logout logging everyone out instead of just the user that clicked the logout link!
Have you cleaned browser cache? Or refresh that page using Ctrl+F5 after code change. Also, wp_logout destroys only current user session as it just cleans up cookies in user browser.
Sep
26
comment wp_logout logging everyone out instead of just the user that clicked the logout link!
Have you tried my updated code? And also have a look into logout link url in both versions. It should contain .../wp-login.php?action=logout&redirect_to=...
Sep
26
awarded  Citizen Patrol
Sep
26
comment wp_logout logging everyone out instead of just the user that clicked the logout link!
@Rob, I've changed the code above. Sorry, I've missed the point in the beginning.
Sep
26
revised wp_logout logging everyone out instead of just the user that clicked the logout link!
Wrong answer
Sep
26
answered wp_logout logging everyone out instead of just the user that clicked the logout link!
Sep
26
comment Resize post thumbnail produces horrible image quality..Any help?
What do you have in your Settings Media Screen? And do you have thumbnail customizations in your functions.php?
Jul
30
comment get_page_by_title() not returning anything
@dave Hi! Sorry for late answer: I'm on vacation without a notebook. IMHO there is no problem, just one more SQL query. And, sure, it's not so elegant as builtin function.
Jul
18
comment get_page_by_title() not returning anything
@dave, I have no more ideas. The only I could do in place of you is temporarily alter each return one by one in get_page_by_title(), get_page() and get_post() functions in /wp-includes/post.php` to see which one exactly breaks the thing and why.
Jul
18
comment Unable to use get_page_by_title() more than once per page?
get_page_by_title() returns post' object or one of numeric and associative arrays, containing post information, not post id.
Jul
18
comment Creating a custom login on site.
To use WordPress function externally you can try to include wp-load.php to your script. Search for "wordpress functions outside". Also have a look here: Don’t include wp-load, please.
Jul
18
comment Creating a custom login on site.
Just place the updated code in any file of WP theme you are using (e. g. sidebar.php). Then it should work. Regarding WP_DEBUG: when enabled it shows you errors if any. Also if you got no errors with your separate script you should enable error_reporting in your php.ini.
Jul
18
comment Creating a custom login on site.
So it's not in any of your WordPress theme files? It should be there. And also enable debugging during development stage. It helps a lot.
Jul
18
comment Creating a custom login on site.
Do you have debugging enabled? WP_DEBUG. And where do you place this form?