links - Content -> Post is easy, but Post -> Content is hard

I have a CPTPods, so it makes Post to Country, but it's the almost identical.Content to Post (or Country) is easy,

I have a CPT/Pods, so it makes Post to Country, but it's the almost identical.

Content to Post (or Country) is easy, example: /country/page/5 (Content) to /country/taiwan/ (Post).

while ( $query->have_posts() ) :
  $query->the_post();
  ?><a name="title<?php echo get_the_ID()?>"></a>
  <?php echo '<a href="'.esc_url( get_permalink() ).'">'.get_the_title()."</a>";
endwhile;

On Post (Country), I also wanted to go to the previous before. So how I go back /country/taiwan to /country/page/5#title58? I can not go to /country/page/5#title58, nor /country/page/5, only manual /country/.

<a href="/country/page/">Country</a>

Can you show me the -> Content, that is the function linking to /country/page/5#title58?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745567733a4633497.html

相关推荐

  • links - Content -&gt; Post is easy, but Post -&gt; Content is hard

    I have a CPTPods, so it makes Post to Country, but it's the almost identical.Content to Post (or Country) is easy,

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信