Hi Air,
I would like to use "View map" instead of "Read more" on one of my blog/archive pages, but I will still use the latter on the other pages.
How do I add hooks/shortcodes(?) to the code so that when "<--map-->" (I removed the ! because it gets commented out) appears in the code, "View map" would be used on the page?
Thank you,
LazyDiver
Comments
content.php
you have You could use that and change it to Now it is only for manual post cutting(previous code was wrong). Now when you write post, and want to show map only if post is viewed you will have to add both tags before map. Your post content should look like thisContent visible on post list <!--map--><!--more--> rest of post, map code
.Important thing is that this tags
<!--map--><!--more-->
have to be added in Text mode of editor, or<
&>
will be changed to different code and it will not work.I have tested this and it works:-)
With regards.
Thanks. I tried that, but I think that's for the auto-excerpt.
I forgot to tell you that I'm using the manual option, sorry about that. How do I edit the manual excerpt option?
Thanks again for your great support.
<--map-->
to code that will be unique to map.With regards.
Sorry, but I need a little more guidance. How exactly do I change the code in order to show "Read more" and "View more" when I insert <--more--> and <--map-->, respectively, in manual excerpt mode?
Thanks for your patience,
LazyDiver
Sorry for problems.
With regards.
It worked, BUT I used <--more--><--map--> instead of the reverse. For future reference.
Thanks for all your help. Great support!