wordpress-theming

WordPress > setting permalink option via script buggy?

你。 提交于 2019-12-24 00:59:01
问题 My theme's custom options panel has the following code... ` /* initialize the site options */ if(get_option('permalink_structure')==""){update_option('permalink_structure', '/%postname%/');} ` This checks the permalink option setting and since the WP default is "" which triggers the site.com/?p=x handler. This way, if the user has not yet set permalinks from the default, my script does it for them, by setting permalink to post name. Or at least that what I thought... However, I've had a few

Wordpress theme Error “Fatal error: Cannot re-assign auto-global variable _POST”

只谈情不闲聊 提交于 2019-12-24 00:38:37
问题 there's a error in this theme, http://www.mafiashare.net/download/sound-rock-music-band-wordpress-theme/ when I try to activate it, this show up ( ! ) SCREAM: Error suppression ignored for ( ! ) Fatal error: Cannot re-assign auto-global variable _POST in C:\wamp\www\web\wp-content\themes\soundrock\functions.php on line 48 Call Stack # Time Memory Function Location 1 0.0014 364560 {main}( ) ..\themes.php:0 2 0.0043 433520 require_once( 'C:\wamp\www\web\wp-admin\admin.php' ) ..\themes.php:10 3

How to Display Custom meta field value insted of title on custon post list table?

 ̄綄美尐妖づ 提交于 2019-12-23 22:17:51
问题 I have created a custom post type "cinfo" and removed title and editor form the edit page. With the help of this code. Also displayed some custom meta fields which are relevant to my plugin. function remove_box(){ remove_post_type_support('cinfo', 'title'); remove_post_type_support('cinfo', 'editor'); } add_action("admin_init", "remove_box"); It looks something like this. Now when i see the list page I still see the title with edit, view and delete button beneath it. which I don't want

How can I unmute (and turn off autoplay) a YouTube video for twentyseventeen?

天大地大妈咪最大 提交于 2019-12-23 10:56:18
问题 I have a lecture on YouTube that I would like to use as the header movie for my twentyseventeen child themed website. I would like it with sound and without autoplay. (As viewed on Youtube, the video has sound intact.) Following [this question about autoplay], I seta a video URL of https://www.youtube.com/watch?v=1dYAYBNU6qM&autoplay=0. The behavior does not appear to have changed. It starts immediately, but sound is muted. How, with twentyseventeen, do I have an option of a media file that

Search results not displaying for multiple word search in WordPress

与世无争的帅哥 提交于 2019-12-23 10:38:39
问题 I've customized a theme and am having some problems with search results using multiple-word queries. Site is live at www.abetterworldbydesign.com Searching for a single word works as expected. Searching for multiple words that should have returned results shows blank results. Code for searchform.php below. <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>"> <div> <input type="text" id="s" name="s" /> <input type="submit" id="searchsubmit" value="<?php esc

How to extend sorting order of Team Members

我们两清 提交于 2019-12-23 10:26:08
问题 I'm using Business Lounge theme by RT themes with Elementor. Wordpress version is current (5.2.1) On the team page (Demo: https://businesslounge-demo.rtthemes.com/our-team/) there is a list of cards of team members. I want to change the order of the team members to an option that is not currently selectable. The team member list is done with a shortcode [staff_box] In Elementor edit mode I looks like this: Edit: The edit form is defined in wp-content/plugins/businesslounge-extensions/inc

Add phone number on top of menu and should be responsive view in mobile

放肆的年华 提交于 2019-12-23 05:06:24
问题 The wordpress theme I'm using is this one: https://wordpress.org/themes/total/ My website is http://www.kalimataxiservice.com/ I just want to add two phone numbers on the right side of this theme like this: Desktop: Mobile: I used this html but not work: <div class="contact-phone"><i class="fa fa-phone" aria-hidden="true"></i> <a href="tel:+91-9996320362">+91-9996320362</a><br> <a href="tel:+91-8708558959">+91-8708558959</a></div> I used this css: .contact-phone { display:block; text-align:

How to integrate WordPress into Webpack?

假装没事ソ 提交于 2019-12-23 04:58:09
问题 I developed a website front-end using HTML/CSS, JavaScript and Sass or Scss. I used NPM. I need to put that website into WordPress. I already installed WordPress and put that folder with all my assets(HTML/CSS, JS, Sass etc..) into theme folder. Now, what do I do now? How do I connect all of this? I know it's possible because I have worked on a site like this before at work, but not sure how to do it from the ground up. Webpack -> WordPress. I will watch the files with NPM or webpack, but the

Dreamweaver CS6 Site Setup for Test Site with MAMP and WordPress NIGHTMARE

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 04:45:58
问题 I have been trying to set-up a test site server on Dreamweaver CS6 IDE (which I hate) to try out the Dynamically-related files theming feature. I have been attempting to do this for hours and looked at more tutorials and blogs than I can remember attempting to set-up a test site so that I can simply try out this feature but nothing seems to work. On the Site box I have: Site Name: test site Local Site Folder: users/myname/Sites/wordpress/ On the Servers I have: Server Name: Apache Connect

Taxonomy is not working

天涯浪子 提交于 2019-12-23 03:14:19
问题 I have created a post type called blogs with categories and a taxaonomy called "blog name"... Posts are showing in categories but in taxonomies posts are not shown. I am new to taxanomies... I have pasted the code here function create_post_type_blogs() { $labels = array( 'name' => _x('Blog Posts', 'post type general name', THEMEDOMAIN), 'singular_name' => _x('Posts', 'post type singular name', THEMEDOMAIN), 'add_new' => _x('Add New Post ', 'book', THEMEDOMAIN), 'add_new_item' => __('Add New