wordpress-plugin

How to display the featured image of a page in the page itself automatically in WordPress? [closed]

血红的双手。 提交于 2019-12-05 12:37:56
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Please i need your help with the following. The features images that i am setting for my pages are not getting displayed in the pages themselves. Is there any plugin or something i can do in order to let those featured images that i am setting for posts and pages to get displayed inside the corresponding entry? Any suggestions are greatly appreciated! Put: <?php if ( has_post_thumbnail() ) { the_post_thumbnail()

wordpress schedule event not firing in set time

独自空忆成欢 提交于 2019-12-05 11:45:57
In WordPress I am creating a plugin where I am sending email to users. For that I am using WordPress cron job. So basically what it will do is just send emails to users in every hour. So my code looks like this public function __construct() { add_action('init', array( $this, 'send_emails_to_users') ); add_action('cliv_recurring_cron_job', array( $this, 'send_email') ); } public function send_emails_to_users() { if(!wp_next_scheduled('cliv_recurring_cron_job')) { wp_schedule_event (time(), 'hourly', 'cliv_recurring_cron_job'); } } public function send_email() { //send email code goes here }

Wordpress - Contact Form 7 Not Sending to Certain Email

穿精又带淫゛_ 提交于 2019-12-05 11:33:02
I am using Contact Form 7 with Wordpress, but I am experiencing an email compatibility issue. I have the form setup to email to email@domain.ca, domain.ca being the domain of the website hosting the site. The email address exists and works great, however the Contact Form keeps failing on send. If I change the email address to any of my Gmail or other accounts, it works fine. I am looking for ideas or suggestions as to how I might debug this. Is it because the site is hosted on a shared hosting server but the mail server is in-house at the physical location? Any ideas would be great. Ended up

Wordpress preview_post_link

你说的曾经没有我的故事 提交于 2019-12-05 08:27:04
I am trying to alter the default "preview post" button when posting on wordpress as the site has a hacked wordpress install and the posts previews are not where they are suppose to be. I found the hook preview_post_link now I am just trying to figure out how to make a little plugin that will fix the problem. What I don't know how to do and why I am posting here is, using the add_filter to change the link add_filter( 'preview_post_link', 'the_preview_fix' ); function the_preview_fix() { return; } all I need it to do is instead of going to its current link go to www.website.com/blog/p/the-slug

How to remove wonderplugin.com link from WonderPlugin slider

。_饼干妹妹 提交于 2019-12-05 07:44:08
I am relatively new to the WordPress. I am using free version of the WonderPlugin slider in my site. There is a link coming in the top left corner of the slider showing wonderplugin.com. Is it possible to remove that link from the free version of the WonderPlugin. I am using WordPress 4.0 and WonderPlugin Slider Free Version 2.6 First of all if you want to use free version of the WondePlugin, you should be fine to show the wonderplugin link on the slider. You can avoid that link by using commercial version of plugin. As far as free version is concern, the link can be removed by the custom css.

WooCommerce custom function for Free Shipping Label

懵懂的女人 提交于 2019-12-05 07:26:10
When i put the following into to my functions.php it crashes my entire site. the purpose of this function is to change elseif ( $method->id !== 'free_shipping' ) { $label .= ' (' . __( '**Free**', 'woocommerce' ) . ')'; to this... elseif ( $method->id !== 'free_shipping' ) { $label .= ' (' . __( '**To Be Calculated**', 'woocommerce' ) . ')'; When i change the one word in the original woocommerce/includes/wc-cart-functions.php it works perfectly. I don't want it to be overwritten with an update. /** * Get a shipping methods full label including price * @param object $method * @return string */

How to force wp_enqueue_style to display CSS at the very bottom of the head tag to override all CSS rules?

人盡茶涼 提交于 2019-12-05 05:16:48
I am currently studying on how to create Wordpress administration templates via plug-ins, and according to the Wordpress Wiki you can use hooks such as admin_head , wp_admin_css , and/or login_head to manually echo your link html tag: echo "<link rel="stylesheet" type="text/css" href="' . get_option('siteurl') . '/wp-content/plugins/blue-steel/login.css" />'."\n"; The example obviously is A Bad Thing because of the way the link tag is hardcoded inside php logic. The ideal is to use wp_enqueue_style() to insert CSS. However, it has it's own idea of WHEN the CSS is inserted, and only reacts to

what is the difference between get_terms and get_the_terms in WordPress ?

自作多情 提交于 2019-12-05 03:30:07
I need your help. My question is what is the difference between get_terms and get_the_terms in WordPress ? I know that get_the_terms for example give me set of categories that a post attached to them, but really I can't understand what get_terms do and how it different from get_the_terms ? thank you all. In the WordPress Codex you can find: For get_the_terms: "Retrieve the terms of the taxonomy that are attached to the post." http://codex.wordpress.org/Function_Reference/get_the_terms For get_terms: "Retrieve the terms in a taxonomy or list of taxonomies." http://codex.wordpress.org/Function

Getting Nivo-slider to start before all images are loaded

百般思念 提交于 2019-12-05 03:07:20
问题 I am using the Nivo-slider Wordpress plugin, and love how it looks and how easy it is for my clients to use. The only problem is that the slideshows do not play until all the images are loaded, which is a big problem as soon as you have more than a few images: http://www.marcusmcshane.com/ Does anyone know how to make the slideshow start after the first couple have loaded? Thanks in advance for any help you can offer. 回答1: Having had plenty of experience with Nivo Slider personally, I

Matching text between braces in PHP

只愿长相守 提交于 2019-12-05 01:03:16
问题 In direct follow-up to this previous question, how can I pull the text (and the braces if possible) out as a match using PHP? Specifically, I am writing a Wordpress plugin and am looking to reformat all text between two curly braces (a quasi wiki-marking). I've followed the steps outlined in another previous question I asked, and have the matching part working - it's the match I need help with. Example: This is some {{text}} and I want to reformat the items inside the curly braces Desired