wordpress-plugin

wordpress - Error 403 file javascript plugin wordpress

人盡茶涼 提交于 2019-12-13 06:04:51
问题 I have problem in my wordpress plugin, website have plugin and in the plugin not load javascript, its say 403 forbidden when I go to link plugin here. it's strange, because the file is exist. how can i solve this? 回答1: change your permision of directory and files to 775, 回答2: Generally what this means is that the webserver does not have permission to access the file. For example, on OS X, there is a user called _www that needs permission. 来源: https://stackoverflow.com/questions/20534082

Revolution Slider Thumbnail Arrows

醉酒当歌 提交于 2019-12-13 04:46:53
问题 I have been messing around with every single setting but I cannot seem to get the desired feature. What I want is to have the thumbnails include arrows so that the user can see a different set of slides from the thumbnail list. At the moment when the user hovers over the thumbnail list on the slider, it moves in the opposite direction as the mouse so the user can choose different thumbnails. That's nice, but I want the user to click on arrows attached to the left/right sides of the thumbnail

wordpress site work on local but not works on online server

若如初见. 提交于 2019-12-13 04:39:22
问题 my wordpress site correctly working on local server but when i am uploading it on server 404 page not found error is showing. i check my index.php its correctly redirecting. here is code:- <?php define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wp-blog-header.php'); ?> i check my wp-blog-header.php,its also working.because i forward it to phpinfo page and info page showing,but site page not showing. here is wp-blog-header code:- if ( !isset($wp_did

How to limit no of comments in a page in wordpress

情到浓时终转凉″ 提交于 2019-12-13 04:26:52
问题 I am creating feedback page in wordpress application. I am using <?php comments_template(); ?> code in my template file. I don't know how should I limit no. of comments in a page. Basically I want that it should display 4 comments in the feedback page. After 4 comments there should be pagination of comments. Please help me... 回答1: in the admin panel- Settings > Discussion > Other comment settings > Tick - Break comments into pages with [NUMBER] ...... 来源: https://stackoverflow.com/questions

Cant access wp-load.php dynamically

旧时模样 提交于 2019-12-13 04:24:04
问题 How to have access to wp-load.php ? I can access it using the following require_once("../../../../wp-load.php"); But I need to find it dynamically so I am using the following but none of them works. require_once( dirname(__FILE__).'/../../../wp-load.php'); require_once( dirname(__FILE__)."/../../../wp-load.php"); require_once( ABSPATH.'wp-load.php'); require_once( ABSPATH."wp-load.php"); How to have access to localhost:8888/wordpress/wp-load.php? 回答1: Add below code snippets at beginning of

Get last message in a conversation in sql

那年仲夏 提交于 2019-12-13 04:06:16
问题 I need to get the newest message that is unanswered consider the following tables: usermeta userid metakey metavalue -----|------------|------- 12 | "thekey" | true 41 | "thekey" | true Message sender reciepent content date -----|------------|--------------|----------------- 12 | 0 | "lorem ipsum"|2013-08-12 21:20:31 0 |12 | "lorem ipsum"|2013-08-12 20:20:31 41 |50 | "lorem ipsum"|2013-08-12 18:20:31 50 |41 | "lorem ipsum"|2013-08-12 19:20:31 Now i want to get messages that were not answered

Woocommerce changing labels for Products in backend

谁都会走 提交于 2019-12-13 03:01:51
问题 I have changed the labels for products in woocommerce backend. I have used the woocommerce_register_post_type_product filter to update the product post labels. Now I want to change the label for "Sort Product" filter to "Sort Courses". Also I want to hide Product Data drop down which shows up when I edit the product. 来源: https://stackoverflow.com/questions/23651496/woocommerce-changing-labels-for-products-in-backend

update_post_meta for Wordpress Yoast SEO

吃可爱长大的小学妹 提交于 2019-12-13 01:34:18
问题 I'm having trouble with Yoast Worpdress SEO to automatically Update the Title, Keywords and description, I have tried several ways with no success, First test I've done is something like this, adding directly in fucntions.php update_post_meta('80', '_yoast_wpseo_title', 'Test SEO Title' ); It works fine, however when I try a method like this, it won't simply work function save_seo_meta_data($post_id) { global $post; $data = new MovieData; if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)

Upload progress bar on contact form 7

隐身守侯 提交于 2019-12-13 01:11:10
问题 I have a friend which has this website and has clients uploading big files to his contact form all the time. As the form does not say the percentage of upload, often people just go away cause they think the website is blocked. This is the contact form url http://www.smalllinks.com/68G7 The only way to avoid this would be to build a contact form that has an upload progress bar. As he i programmed the website in Wordpress and i have always used contact form 7 (which is hooked to another plugin

How can I modify the filename suffixes of uploaded files in WordPress?

耗尽温柔 提交于 2019-12-13 00:30:04
问题 I was wondering if it is possible to modify the way WordPress handles image uploads. If I upload an image now, the default filenames for the various sizes include the dimensions, something like the following: image-100x100.jpg , image-300x300.jpg , image-600x600.jpg , and image.jpg . While this may be useful in some cases, I need these file names to be a bit more versatile, something like the following: image-thumb.jpg , image-medium.jpg , image-large.jpg , and image.jpg . Does anyone have