- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我的 WordPress 页面“画廊”和“事件”显示空白屏幕,但其他页面(我创建的旧页面)仍然有效
我曾尝试将内存 php.ini 从 30 增加到 180,但没有效果。主题代码有问题,因为如果我安装一个 wordpress 主题,即 twentyeleven 主题,页面就会显示。
php.ini.production 文件
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 180
我不确定是什么代码导致了错误,所以这是该站点的链接:http://radian3.com/和空白页之一:http://radian3.com/events/
更新 1
我正在添加用于显示页面的 page.php 文件:
<?php
/* CONTACT PAGE */
if( is_page("102")) { ?>
<?php get_header(); ?>
<div class="main-content" >
<div class="about-container">
<div class="contact-wrapper">
<b class="about-title">CONTACT US</b>
<div class="about-icon-wrapper">
<img src="<?php bloginfo('template_url'); ?>/img/down-arrow.png" alt="about-icon" width="50%;">
</div>
</div>
<div class="contact-body-wrapper">
<div class="contact-col-1">
<div class="contact-headline">
<b id="primary-headline">CONTACT FORM</b>
</div>
<div class="content-wrapper">
<?php echo do_shortcode("[contact-form-7 id='191' title='Contact form 1']"); ?>
</div>
</div>
<div class="contact-col-2">
<div class="in-touch-headline">
<b id="primary-headline">GET IN TOUCH</b>
</div>
<div class="touch-content-wrapper">
<p>For all other enquiries and information please contact us </p>
<div class="touch-content-post">
<div class="contact-icon-wrap">
<img class="touch-img" src="img/iphone-icon.jpg">
</div>
<article class="touch-content">
<p>1800 243 6500</p>
<p>1800 555 5440</p>
</article>
</div>
</div>
<div class="touch-content-wrapper">
<div class="touch-content-post">
<div class="contact-icon-wrap">
<img class="touch-img" src="img/msg-icon.jpg">
</div>
<article class="touch-content">
<p>info@ipesite.com</p>
</article>
</div>
</div>
<div class="touch-content-wrapper">
<div class="touch-content-post">
<div class="contact-icon-wrap">
<img class="touch-img" src="img/location-icon.jpg">
</div>
<article class="touch-content">
<p>25/153 Mujanjii st,<br> Hawker ACT 2614 Australia</p>
</article>
</div>
</div>
</div>
</div>
</div> <!-- / END about-container -->
</div><!-- /main-content -->
<?php get_footer(); ?>
</body>
</html>
<?php
}
?>
<!-- ABOUT PAGE -->
<?php if(is_page('84')) { ?>
<?php get_header(); ?>
<div class="about-container">
<div class="about-image-wrapper">
<b class="about-title">ABOUT US</b>
<div class="about-icon-wrapper">
<img src="<?php bloginfo('template_url'); ?>/img/down-arrow.png" alt="about-icon" width="50%;">
</div>
</div>
<div class="about-content-wrapper">
<div class="about-content-headline">
<b id="primary-headline">COMPANY OVERVIEW</b>
</div>
<div class="about-content-post">
<article>
<p>
<br><b id="secondary-headline">Working on new generation investors</b><br>
Institute of professional excellence was formed in April, 2017 with the vision of its two founder directors Shahid Al and Syed Najib ul Hasan. </p>
<p>
It aims to introduce new investors to Pakistani equity market by attracting them to PSX. Both the founders firmly believe transformation of "Saving culture" to the "equity culture" is the need of the time. Not enough work is being carried out in this regard. The institute will work towards developing a new generation investors with an aim of developing a new stream of entrepreneurs.
</p>
<p>
<br><b id="secondary-headline">Partnership and joint certification initiatives</b><br>
IPE initiatives, include partnerships (with Educational boards, universities ,other institutes, and also corporate sector) through specific courses on investment strategies, entrepreneurship and equity market.
</p>
<p>
The institute is working on its upcoming courses as joint certification programs, with an aim to develop new market professionals, investors and entrepreneurs.
</p>
<p>
IPE will engage general public by conducting financial workshops, seminars, short courses and even by launching various comprehensive courses at universities which would serve in MBA program as a major in Capital markets.
</p>
<p>
<br><b id="secondary-headline">Bridging the gap between public and Capital market</b><br>
IPE will aggressively intensify its outreach and advertising programs directed at younger Pakistanis by promoting financial literacy as a necessary life skill.
</p>
<p>
The main motivation to setup this institute was to fill up a huge vacuum already exist between Pakistani financial markets and the new generation.
</p><br>
<p>
IPE aims to provide customised solutions for new potential investors and potential employees who are struggling to enter Pakistani Financial markets due to gap in their knowledge and skills, demanded in those markets.
</p><br>
<p>
<br><b id="secondary-headline">Helping in Career Opportunities</b><br>
We will not only educate and prepare our students to get advantage of financial markets as an investor or an employee (whatever way they pick and choose). But we will also extend our services to recommend successful students to employers looking for trained employees in PSX, CDC and brokerage houses. We are in contact with employers in PSX and we are in a very ideal and credible position to recommend our successful students on regular basis whenever any opportunity pops up in employment areas.<br><br>No need to mention our certification would also help our students besides direct recommendation.<br>
</p>
<p>
<br><b id="secondary-headline">Corporate Projects and Services</b><br>
Besides, our educational endeavors mentioned as above we have a bunch of prestigious senior professionals who would engage with us in different corporate projects time to time depending on their area of expertise. So we are ever ready to serve corporate sector with projects of commercial value as a consultancy.
</p>
<p>
<br><b id="secondary-headline">Upcoming Events</b><br>
We are scheduling seminars and workshops to guide how to be successful in Pakistani equity market as an investor.
Soon we will start updating future events for our viewers too.
</p>
<p>
<br>There are few more projects in pipeline and we will update each of them in appropriate time As currently we need to comply with constraint of confidentiality issues with our clients.<br>
</p>
<p>
<br>Keep visiting this site in future. We will come up with surprises for you.<br><br>Thanks<br>
Shahid Ali and Syed Hasan
</p>
</article>
</div>
</div>
</div> <!-- / END about-container -->
<?php get_footer(); ?>
<?php } ?>
<!-- Our Team PAGE -->
<?php if(is_page('172')) { ?>
<?php get_header(); ?>
<div class="about-container">
<div class="about-team-wrapper">
<b class="about-title">OUR TEAM</b>
<div class="about-icon-wrapper">
<img src="<?php bloginfo('template_url'); ?>/img/down-arrow.png" alt="about-icon" width="50%;">
</div>
</div>
<div class="about-content-wrapper">
<div class="about-content-headline">
<!-- <b id="primary-headline">BOARD OF DIRECTORS</b>
--> </div>
<div class="about-content-team">
<div class="our-team-wrap">
<div class="team-image-wrap">
<img src="img/shahid.jpg" alt="director-name">
<p><b>Shahid Ali</b></p>
</div>
<article class="director-bio">
<p>Mr. Ali is a commerce graduate and an associate member of ICMAP since 1990. He started his carrier as banker at UBL in 1974. Before joining Pakistan Capital Market in 1991 he also worked as head of costing department in leather and textile garments industries.<br><br>
He had worked at top management positions at local as well as international equity broking firms those includes W. I. Carr (Far East), J. P. Morgan Chass (formerly Jardine Flemings Pakistan, Orix Investment Bank Al Hoqani Securities and Investment Corporation, Habib Metropolitan Financial Services and BIPL Securities (formerly KASB Sec. Ltd). He was CEO of last four companies mentioned as above.<br><br>
He is among few pioneers in 1991 who took the corporate brokerage house culture in K.S.E to next level by establishing 8 different corporate brokerage houses, most of them with foreign Joint ventures, after foreigners being allowed to enter in Pakistan equity markets.</p>
</article>
</div>
<div class="our-team-wrap">
<div class="team-image-wrap">
<img src="img/najib.jpg" alt="director-name">
<p><b>Najib Ul-Hasan</b></p>
</div>
<article class="director-bio">
<p>
He is an international business coach and qualified from University of Canberra, Australia and Australian Employment Inc. Author of dozen of e-books and 6 courses related to various business management topics. He has an extensive corporate exposure at top management level in Australia and Pakistan. His passion is Forex and stock trading, coaching, and consultancy, all with great success throughout.<br><br>
Also done 6 professional courses from I.CM.A. In his earlier times, he became a double graduate from University of Karachi in Commerce and Arts faculty. <br><br>
Australia (2001-2016)
Director in Tall Trees Motel, Project Director in Aus Pak Soft Solutions pty Ltd, Senior Manager Operations in Cybos pty Ltd
In his last 5 years in Australia he started working as business coach, consultant and mentor for entrepreneurs for both online and offline business models, in Australia and worldwide and was successful in his coaching venture.<br><br>
Pakistan (1987- 2000)
Head of Settlements in ING Barings, Deputy Manager in ISL, Production director in Jawad Garments, Financial controller in Pakistan Wire Industries, Cost Accountant in B.P Food Industries.<br><br>
He had a unique experience of setting up ING Barings entire systems and training stock office staff from scratch and running the stock office operations successfully. Also he contributed in the event of its winding up. He had similar experience in ISL (a JV with Smith New Court, Hongkong that was a subsidiary of Merrill Lynch) for starting the stock office operations from scratch and running that successfully.
</p>
</article>
</div>
</div>
</div>
</div> <!-- / END about-container -->
<?php get_footer() ?>
<?php } ?>
<!-- Our Members Data PAGE -->
<?php if(is_page('176')) { ?>
<?php get_header(); ?>
<div class="about-container">
<div class="about-members-wrapper">
<b class="about-title">MEMBERS DATA BANK</b>
<div class="about-icon-wrapper">
<img src="<?php bloginfo('template_url'); ?>/img/down-arrow.png" alt="about-icon" width="50%;">
</div>
</div>
<div class="about-content-wrapper">
<div class="about-content-headline">
<b id="primary-headline">OUR GRADUATES</b>
</div>
<div class="about-content-post">
<article>
<p>
<br><b id="secondary-headline">Institute of professional excellence</b><br>
In compliance to our own mission we encourage our successful students to submit their resume to us. As we help our members (successful students) to find great employment or project opportunities in the open market. We are in contact with employers and corporate world and we want our members to get best value from this.</p><br><br>
<p>Good luck.</p>
</article>
</div>
</div>
<div class="about-content-wrapper">
<div class="about-content-headline">
<b id="primary-headline">ALREADY GRADUATED?</b>
</div>
<div class="about-content-post">
<article id="content-margin-left">
<br>
<p>Have you already graduated? Contact us to join our Alumni group for any opportunities.</p>
<br><br><br>
<p><b id="secondary-headline">Contact:</b></p><br>
<p>Mr Shahid Ali 0333 2238 461</p><br>
<p>Mr Syed Najib ul Hasan 0335 2522 775</p>
</article>
</div>
</div>
</div> <!-- / END about-container -->
<?php get_footer(); ?>
<?php } ?>
<!-- Our Mission PAGE -->
<?php if(is_page('174')) { ?>
<?php get_header(); ?>
<div class="about-container">
<div class="about-mission-image-wrapper">
<b class="about-title">OUR MISSION</b>
<div class="about-icon-wrapper">
<img src="<?php bloginfo('template_url'); ?>/img/down-arrow.png" alt="about-icon" width="50%;">
</div>
</div>
<div class="about-content-wrapper">
<div class="about-content-headline">
<b id="primary-headline">MISSION STATEMENT</b>
</div>
<div class="about-content-post">
<article>
<p>
<br><b id="secondary-headline">Institute of professional excellence</b><br><br><i><blockquote>
"Institute of professional excellence being a partner in nation building acknowledges its noble duty towards the society to educate new stream of investors and professionals in the capital market" </blockquote><br></i> </p>
<p>
<br><b id="secondary-headline">Our Mission</b><br>
To take a leadership role in providing value to business world and education sector by creating a new generation of investors and professionals in capital market.
</p>
<p>
<br><b id="secondary-headline">Our Vision</b><br>
1. To serve our community and society by adding value in our courses with research, and innovative work that adheres to a blend of industry based competency with academic content.
</p>
<p><br>
2. To follow our set "Standards of financial literacy" in all our courses to ensure quality and a structured approach.
</p><br>
<p>
<b id="secondary-headline">Business model</b><br>
We create value with high quality courses much needed in the capital market at different levels. We offer our training and courses in partnership with corporate sectors, universities and other institutes who are seeking to increase employability skills in their students together with academic value.
</p>
<p>
<br><b id="secondary-headline">Our Strategy</b><br>
To provide competency based training for professionals, investors and entrepreneurs by means of publicly accessible credentialing programs for establishing industry specific excellence.
</p>
<p><br>
To work with corporate sector as a partner or consultant in projects with commercial value related to capital market. To build up community and deliver to all members the value that would provide them an edge to to excel with confidence in capital market.
</p>
<p>
<br><b id="secondary-headline">Our Core Values</b><br>
To provide quality and value for money with highest professional integrity and confidentiality to all clients, students and related entities.
</p>
</article>
</div>
</div>
</div> <!-- / END about-container -->
<?php get_footer(); ?>
<?php } ?>
最佳答案
问题是您只显示了 5 页的内容!
您的 page.php 只输出这些页面的内容:
/* CONTACT PAGE */
if( is_page("102")) { ?>
[...]
<!-- ABOUT PAGE -->
<?php if(is_page('84')) { ?>
[...]
<!-- Our Team PAGE -->
<?php if(is_page('172')) { ?>
[...]
<!-- Our Members Data PAGE -->
<?php if(is_page('176')) { ?>
[...]
<!-- Our Mission PAGE -->
<?php if(is_page('174')) { ?>
[...]
对于其他所有页面,您没有输出任何内容,因此您得到一个空白屏幕。
我最担心的是为什么要以这种方式显示内容?
首先,内容本身应该来自 WP 页面中的内容编辑器。我知道如果您要从现有的 HTML 网站重新创建网站,这可能只是您的第一步。但是通过将您的内容放入 WP 而不是对其进行硬编码,您会发现在大多数情况下您可以为每个页面重复使用相同的模板。
更重要的是,不要将所有内容都放入 page.php - 您当前拥有整个站点的内容!如果每个页面需要不同的结构(或者如果您确实需要将内容硬编码到每个页面中),您应该创建单独的模板。
看起来你是 WP 的新手,所以我建议你做一些关于为 WP 创建主题和开发的教程,因为如果你没有以正确的方式做,你就会遇到更多还有更多问题:)
关于php - 自定义 WordPress 主题 : Only Two Pages showing blank screen?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46397662/
我正在尝试将我所有的东西从 videomarathon.com/dk 导入到 videomarathon.com/se(帖子等) 我正在使用 wordpress 导入器。 上传导出的文件时,它向我显示
Azure WordPress 和 Azure 可扩展 WordPress 之间有什么区别?除了可扩展的 WordPress 允许您选择 azure 存储之外,我看不出有什么区别 最佳答案 基本区别:
我目前正在一个与体育相关的 wordpress 网站上工作。我所有的帖子都在同一个地方,分为足球、网球等。我想改变我博客的结构,比如足球,应该是domain.com/football对于网球,应该是
Wordpress 3 有一个漂亮的 TinyMCE 实现,我相信它比它所基于的原始 TinyMCE 运行得流畅得多。 很棒的事情:- HTML/源代码 View 作为选项卡而不是弹出窗口- 有吸引力
我在 codex.wordpress.org 和developer.wordpress.org 上看到了 WordPress 开发人员文档。他们都有关于插件和主题的文档。由于我不了解 wordpres
我有自定义帖子循环,我想在底部添加“查看全部”链接,该链接应指向包含该类型所有帖子的页面。 我能想到的唯一解决方案是为帖子类型创建一个模板页面并硬编码指向它的链接,但我希望有一个更优雅和动态的解决方案
我正在尝试使用类在 WordPress 中创建自定义 REST API 端点。我也用传统方法做了同样的事情——效果很好。但是,使用类时出现错误 The handler for the route is
我是 WordPress 的新手,正在尝试在主页的一部分中使用一些自定义代码,该部分旨在显示三个类别(白皮书、文章和帖子)中每个类别的 #1 趋势帖子.代码只是显示(据我所知)最近的 3 个帖子,无论
我正在尝试在 wordpress 中设置搜索页面的样式。在 search.php 中,我可以设置大部分页面的样式,但随后的以下语句(我从未经编辑的原始页面中获得)生成了内容。
我希望得到一些帮助来解决一些让我发疯的编码问题。我更喜欢在我的 wordpress 帖子标题中写“&”而不是“and”。但是写出&符号会破坏我们的 twitter、facebook 和 google-
是否可以只重写一个类别? 我有一个类别“ 照片”,并且只针对这个类别。 我只想从/category/photos重写它至 /photos 最佳答案 您可以使用 WP Rewrite API 来实现。
我有一个托管在 www.example.com 上的网站,它是一个 Bitnami 应用程序。 我想在 www.example.com/blog 上可以访问的同一台服务器上安装另一个 bitnami
我一直在做一些测试。注意:这仅在Safari浏览器中发生。 我关闭了所有插件并激活了主题二十(而不是我的Catch Box子主题)。在此配置下,除了顶部菜单中的“主页”选项卡(在Safari中显示如下
我是一名 php 开发人员,目前正在开发一个 CMS/博客系统。我想添加一个永久链接系统,比如 WordPress。我很好奇 WordPress 如何解析永久链接。例如,如何获取 id 这样的数据和
有谁知道Wordpress有多安全? 我不知道如何定义“有多安全”。但与其他CMS系统相比,它的安全性如何? 更新: 详细说明我的项目。 我会有很多用户注册。登录后,他们将可以访问我正在开发的插件。大
是否可以授予编辑者管理主题小部件的功能?默认情况下,只有管理员可以这样做。 谢谢, 乔恩 最佳答案 恐怕您将需要使用插件来实现此目的,因为更改窗口小部件是switch_themes capabilit
我有一个在服务器上运行的多站点 wordpress,我想将我的站点转移到另一台服务器上。我通过 filezilla ftp 下载了完整的文件备份还导出了完整的数据库。 现在我将此备份导入到新服务器 (
我使用通用 HTML 标签在 WordPress 插件中创建了一个表单。我刚刚用 echo 测试了文本框提交的值,它工作正常。提交表单后,我需要在同一页面中重定向或显示成功/失败消息。表单提交后如何显
我想启用 wordpress 站点的调试日志,在 wp-config.php 中添加以下设置 /* WordPress debug mode for developers. */ define('WP
是否可以仅在前端(无需编辑 .mo/.po 文件)更改我的 wordpress 安装(WP 3.0 Multisite)的语言? 在此处更改此选项: 也会在后端更改我的语言。 有任何想法吗? 感谢您的
我是一名优秀的程序员,十分优秀!