![]() |
wordpress coders: question
Anyone know why one of them is working and one isnt?
im just counting the number of images in a post Quote:
|
hi...
Because in the second you extract something from the data base... and display the results by applying the filters to format the results... The first one is not working first, because you don't have content (you don't take out anything from the data base)... this is the reason |
cause global $post saves $post->ID; $post->post_content; etc and everything from the current post, figured it would do the same
|
Quote:
If so, you might want to check this out: http://www.web-templates.nu/2008/08/...th-formatting/ |
All times are GMT -7. The time now is 10:49 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123