duanqian3953 2018-10-25 18:18
浏览 41

关于Wordpress集成的FullCalendar - 如何集成PHP文件

I would appreciate some guidance, I am trying to integrate fullcalendar into my wordpress site so I can add events indirectly from my mysql tables.

I have come across this call on the subject but I need to know how to integrate the PHP files into wordpress.

FullCalendar on Wordpress integration - wpdb and json issue

I have also written PHP files to perform this function with fullcalendar outside of wordpress.

This may have provided the action, can someone confirm whether I am taking the right course of action, I have started looking at creating my first custom plugin as option 2, which is the recommended, I would only be creating a plugin to solve this issue, not for distribution, as there is a need to licence the plugin according to the tutorials, how do I overcome this issue, thanks, should I create a custom page, option 2.

Wordpress & PHP Integration

You can do either of the following:

Write a custom wordpress plugin (not hard, I've written dosens). Then place that plugin on a wordpress page in the dashboard (not a post). You can use a content filter to trigger the plugin. It will then execute in the context of a page that is already rendered by the theme.

Create a custom page type. You do this by physically copying and editing and then modifying one of the theme files. Then you create a new wordpress page in the dashboard (again, not a post). When formatting the page within wordpress, you choose the kind of page. That is where you choose your new customised version of the theme page template.

For option 1, you are going to have to read the code of example plugins, and study the documentation on the Wordpress Codex. For option 2, there are probably some tutorials online. Google should help you there.

Any help much appreciated

Thanks, Colin

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 测距传感器数据手册i2c
    • ¥15 RPA正常跑,cmd输入cookies跑不出来
    • ¥15 求帮我调试一下freefem代码
    • ¥15 matlab代码解决,怎么运行
    • ¥15 R语言Rstudio突然无法启动
    • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
    • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
    • ¥15 用windows做服务的同志有吗
    • ¥60 求一个简单的网页(标签-安全|关键词-上传)
    • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法