您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. wordpress获取自定义字段值函数:get_post_custom()

  2. 【描述】 同get_post_meta()一样,用于返回文章的自定义字段值得一个函数,只不过get_post_custom()函数使用起来更简单,如果在循环中使用你甚至不需要设置任何参数。 【用法】 【参数】 $post_id (整数)(可选)将要检索的自定义字段的文章编号。 默认值:Current post 【示例】 if (have_posts()) : while (have_posts()) : the_post(); var_dump(get_post_custom()
  3. 所属分类:其它

    • 发布日期:2021-01-20
    • 文件大小:27kb
    • 提供者:weixin_38548434