我安装了Wordpress Jetpack并在profileA = Profile.objects.get(public_name=public_nameA)
profileB = Profile.objects.get(public_name=public_nameB)
community = Community.objects.get(slug=community_slug)
try:
# I want to get the unique chat that involves both profiles for a specific community or get DoesNotExist (or None) if there is not such chat.
chat = Chat.objects.????????????
except Chat.DoesNotExist:
....
中配置了所有内容,但由于某些原因它无法正常工作。我跟着these instructions和Jetpack网站上的那些,但似乎没有任何内容......开发人员工具显示AJAX响应为functions.php
。
我希望从自定义分类中加载项目。在{“type”:“empty”}
页面上,我有一个简单的PHP加载内容:
archive.php
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
包含每个帖子的模板,作为静态页面,它可以正常工作。我安装了Jetpack并将以下内容放在我的content.php
:
functions.php
但是没有任何内容。我该怎么调试呢?