我在WordPress中使用了二十二个主题。有人告诉我, 如何获取当前页面标题功能?。
我试过这个功能,但它给了我帖子标题而不是页面标题。 谢谢。
<?php echo get_the_title();?>
答案 0 :(得分:2)
def asset_map_fullscreen
@config_items = @config_item.ci_relationships.find(:all, include: [:secondary, :relationship])
@config_items_associated = @config_item.reverse_ci_relationships.find(:all, include: [:primary, :relationship])
@next_level = process_relationship
render :json => @next_level :layout=>false
end
更多信息:
https://wordpress.org/support/topic/how-to-display-page-title-not-the-post-title