Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跪求适配ErphpDown插件!!!友情链接的$cats分类ID自动获取好像存在bug自己动手改了一下 #465

Open
iiidcc opened this issue Jan 10, 2025 · 0 comments
Labels
功能 新功能或需求

Comments

@iiidcc
Copy link

iiidcc commented Jan 10, 2025

  • 是否为已有功能:否
  • 建议阐述:
    跪求适配ErphpDown插件,适配后建议主题后台设置可选择用户中心是用WP的wp-admin/profile.php还是使用ErphpDown的用户中心。

友情链接因为没有自动获取到分类我自己修改了/wp-content/themes/wordpress-theme-puock-2.8.11/pages目录下的template-links.php文件

/*
Template Name: 友情链接
*/

// // 固定多个分类 ID
$cats = [友情链接页面ID,首页友链分类ID];

// 原代码:获取分类 ID 的逻辑,已注释
// $cats = get_post_meta($post->ID, 'page_links_id', true);

@iiidcc iiidcc added the 功能 新功能或需求 label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
功能 新功能或需求
Projects
None yet
Development

No branches or pull requests

1 participant