Ajax tabs (wordpress)

后端 未结 1 787
伪装坚强ぢ
伪装坚强ぢ 2021-01-07 15:39

So, I am very new at Ajax and after reading some online tutorial, below is what I have understood. Please correct me if I am wrong.

Current Situation:

相关标签:
1条回答
  • 2021-01-07 16:23

    Retrieve the posted ID from $_GET['id'] and add it to the path.

    $template_part_path = 'page/tab' . $_GET['id'];
    <?php get_template_part($template_part_path); ?> 
    
    0 讨论(0)
提交回复
热议问题