我正在计划一个webapp来控制银行付款订单.在快速审核中,用户上线并创建付款订单.此订单发送给付款的其他人,并在系统上注册付款.系统会跟踪所有付款,使帐户余额保持最新状态.该系统需要登录系统,银行集成,并在某些时候支持数千个客户端.
我们可以在网上找到有关使用wordpress平台构建webapps的好处的文章.但是,我找不到与用户wordpress的反驳讨论.作为webapp项目中最重要的选择平台,我想了解更多关于选择wordpress的陷阱和危害.
问题是:选择wordpress作为webapp的开发平台有哪些好处和危害,需要与其他系统(后端系统)集成并处理数千个用户(它是否可以扩展?)?
我发现了这个自定义字段插件 - http://wordpress.org/extend/plugins/more-fields/
现在我只想知道如何实现更多字段,我已经安装了插件,创建了字段,并在字段内容中添加了帖子,但前端没有显示任何内容......
我一直在搜索,但无法找到有关如何执行此操作的任何文档.
如何让字段显示在前端?
多个特色图像
在Wordpress中,您可以设置"特色图像".我需要动态添加多个特色图像.
动态数量的特色图像
当我动态地说我的意思是,对于一个帖子我可能想要2张图片,而下一张6张特色图片.这个数字不详.
完成之后,只需将它们循环出去
在主题中我只是用foreach循环将它们循环出来.特色图像存储为自定义字段.这部分我可以处理.
一个插件可能会这样做吗?
我知道http://wordpress.org/extend/plugins/multiple-post-thumbnails/但在这里我需要从头开始确定图像的数量.我的号码不详.
欢迎插件,脚本或好文章.
我想在首页的帖子中添加缩略图.但不知道该怎么做.我的主题不支持custom_field.其中一个类别的代码是我粘贴在这里.......
        <div class="featured">
        <h2>HEADLINES</h2>
            <!--This is where the thumbnails are found for the homepage bottom section - note the custom field name for this image is "thumbnail". Recommended image size is 70x70, as the stylesheet is written for this size.-->
            <?php $recent = new WP_Query("cat=3&showposts=3");  
          while($recent->have_posts()) : $recent->the_post();?>
        <?php the_post_thumbnail(); ?>
     <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
                <a href="<?php the_post_thumbnail() ?>" rel="bookmark"><imgstyle="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="alt text" /></a>
            <?php else: ?>
                <a href="<?php …我正在尝试构建一个自定义wordpress ajax登录表单,但我无法对它进行排序.这是我使用的代码:
HTML:
            <form class="well form-inline" id="login">
                <div class="rowmargin">
                    <h4>Login</h4>
                </div>
                <div class="rowmargin">
                    <input type="text" name="username" id="loginUsername" class="input-medium" placeholder="Username">
                    <input type="password" name="password" id="loginPassword" class="input-medium" placeholder="Password">
                </div>
                <a class="btn btn-primary" id="loginButton"><i class="icon-check icon-white"></i> Login</a>
            </form>
JS:
    <script type="text/javascript">
        $(document).ready(function() {
            $("#loginButton").click(function() {    
                var username = $('#loginUsername').val();
                var password = $('#loginPassword').val();
                var rememberme = "forever";
                var redirect = '<?php bloginfo('url'); ?>';
                var data = {
                    user_login:     username,
                    user_password:  password,
                    remember:       rememberme,
                    redirect_to:    redirect
                }
                $.ajax({
                    url: '<?php bloginfo('url'); ?>/wp-login.php',
                    data: data,
                    type: …我正在尝试创建一个简单的wordpress插件,并且必须调用$ wp_locale-> get_month($ month)函数,但是它返回一个致命错误
function test()
{
    global $wp_locale;
    echo $wp_locale->get_month($month);
}
错误->致命错误:在非对象中调用成员函数get_month()。
。
试图找出创建一个非常简单(可重用)的WordPress小部件的正确方法.通过wpbeginner发现这篇文章似乎是最全面的:http://goo.gl/7O8Izg
// Creating the widget 
class wpb_widget extends WP_Widget {
function __construct() {
parent::__construct(
// Base ID of your widget
'wpb_widget', 
// Widget name will appear in UI
__('WPBeginner Widget', 'wpb_widget_domain'), 
// Widget description
array( 'description' => __( 'Sample widget based on WPBeginner Tutorial', 'wpb_widget_domain' ), ) 
);
}
// Creating widget front-end
// This is where the action happens
public function widget( $args, $instance ) {
$title = apply_filters( 'widget_title', $instance['title'] );
// before and after …我在index.php页面中有以下代码,用于获取所有页面并更改它们.问题是我没有用来the_content()显示内容,而是使用echo $page->post_content().我现在必须在我的页面中嵌入一个联系表格7,但是当我在这里阅读不同的问题时,如果没有,则短代码将无效the_content().
我的问题是如何在这里展示联系表格.
$pages = get_pages($args); 
foreach ($pages as $page){
    // Override Homepage
    if($page->ID == 5){
        $page->post_content = file_get_contents(get_template_directory_uri().'/includes/homepage-override.php');
    }
    // Check if it is menu page
    if($page->post_parent == 169){
        $page->post_content = file_get_contents(get_template_directory_uri().'/includes/location-menu-page.php?location='.$page->post_title);
    }
    // Calling Gallery Images
    if($page->ID == 23){
        $page->post_content = file_get_contents(get_template_directory_uri().'/includes/gallery-page.php');
    }
    // Calling about page
    //if($page->ID == 7 || $page->ID == 17 || $page->ID == 29){
    if(has_post_thumbnail($page->ID)):
        $image = wp_get_attachment_image_src( get_post_thumbnail_id($page->ID), 'single-post-thumbnail' );
        $dom = new DOMDocument();
        @$dom->loadHTML($page->post_content);
        $imgs = $dom->getElementsByTagName("img"); …我想在BuddyPress的用户配置文件菜单中创建一个额外的选项卡.到目前为止,我可以看到菜单中的选项卡,但是当我单击选项卡时,我被定向到另一个页面,在那里我可以看到内容在所有内容之上以及包含用户活动的列表,而不是看到内容在菜单下(比如当您单击"活动","朋友","消息"等)时,我希望这是有道理的...这是我的代码:
 function my_setup_nav() {
    global $bp;
    bp_core_new_nav_item( array( 
          'name' => __( 'Tester', 'buddypress' ), 
          'slug' => 'tester', 
          'position' => 30,
          'screen_function' => 'test_template', 
    ) );
  }
  function test_template() {
    add_action( 'bp_template_content', 'test_template_two' );
    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
  }
  function test_template_two() { 
    locate_template( array( 'buddypress/members/single/tester.php' ), true );
  }
所以,我可以看到带有文本"Tester"的选项卡,但是当我点击我被定向到另一个页面(http:// localhost/my-site/members/my-user/tester /)时,其中的内容来自'tester.php'显示在用户活动上方.
先感谢您.
我遇到wordpress json Api的问题登录用户时.目前我正在使用下面列出的插件的Wordpress版本4.5.1:
以下是我遵循的步骤:
1)生成nonce
http://example.org/api/get_nonce/?controller=user&method=generate_auth_cookie
以下是回复:
{"status":"ok","controller":"user","method":"generate_auth_cookie","nonce":"4d080ff7b8"}
2)生成Auth Cookie
以下是回复:
{"status":"error","error":"SSL is not enabled. Either use _https_ or provide 'insecure' var as insecure=cool to confirm you want to use http protocol."}
为什么我收到此错误?
wordpress ×10
wordpress-plugin ×10
php ×2
ajax ×1
buddypress ×1
image ×1
thumbnails ×1
widget ×1