But if the original ‘post_name’ Hidden field with ‘post->post_name’ value doesn’t store anything on the front-end (it should be the value of the page name), the filter will not work anyway, right?
Or it is possible that case it has the value, but the source code showqs this?
<input name=”post_name” type=”hidden” value=”” />
ps.: i tried to set a direct value for the post_name (jsz), and the filter worked great. So my problem is what should i write to get the page name back.
Strange, if i try it on a page: <?php global $post; echo $post->post_name; ?>
on the frontend i got post_name; ?>
seems like the -> is the problem, but unfortunately my experience of php coding isn’t enough for this. (i tried to change language and theme of course)
-
This reply was modified 6 years, 8 months ago by wiselamp.
-
This reply was modified 6 years, 8 months ago by wiselamp.
-
This reply was modified 6 years, 8 months ago by wiselamp.