Plugins are tools to extend the functionality of WordPress. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

learn more… | top users | synonyms (2)

0
votes
1answer
40 views

Is a custom post type considred a plugin?

I am reading up on custom post types and taxonomies. I am new to Wordpress development, and just trying to get a firm grasp on custom post types. Upon creating a custom post type: <?php /* Plugin ...
2
votes
2answers
79 views

Is there an equivalent to Drupal's Batch API in WordPress?

I'm wondering if there is some sort of equivalent to Drupal's Batch API in WordPress? Basically, the API allows you to register a batch request and Drupal will call your function over and over again ...
3
votes
3answers
610 views

Allow all file types for upload

I'm using Wordpress 3.4.2 for a private blog, i.e. one on which only I can post. Now, Wordpress prevents me from uploading certain file types (like C# source files). As far as I understand it, there's ...
0
votes
1answer
326 views

Unable to add TAB character to post?

I am using the CodeColorer plugin to display source code in my WordPress. I am trying to have my code indented so that it displays properly on the website. However, when I try to add the following ...
1
vote
1answer
332 views

add category name to permalinks on product page /category-name/product-name

I'm trying to reconfigure the permalinks used in WooCommerce such that the following format will be displayed: homesite/category/product. Right now, the permalinks only shows under a category page: ...
0
votes
2answers
304 views

Add a file upload field

I am building a plugin which has a file upload field in it's settings page. The files should not be image files but should be .doc, .txt etc. Struggling with the code for it. Any help would be greatly ...
31
votes
4answers
5k views

Best way to initiate a class in a WP plugin?

I've created a plugin, and of course being me, I wanted to go with a nice OO approach. Now what I've been doing is to create this class and then just below create an instance of this class: class ...
0
votes
1answer
41 views

get_option compatible with wordpress network (multisite)?

I have this function in a plugin that works on wp install but it doesnt work on wordpress MU. if( !get_option( $option-name ) ) { // something } else { // something else ...
0
votes
2answers
40 views

Proper way to replace the_content only for pages created by custom plugin

I'm creating a plugin that needs to replace the_content of only two specific pages that it created upon activation. Here is my code: add_filter('the_content', 'emd_content'); function ...
1
vote
1answer
250 views

Assign post format to categories

I'm looking for a way to allow Wordpress (via a plugin?) to assign a specific post format to categories. (I can assign categories via a third party like IFTTT) Then all my posts in a certain category ...
-2
votes
0answers
19 views

Can't access the (admin role) profile page in wp-admin backend

I have been working on creating a WordPress website. I installed a plugin and when I activated it suddenly my website went down. I brought it back up and I am able to log in to it but I am unable to ...
0
votes
0answers
14 views

wordpress plugin redirects instead of performing search

I am creating a plugin; the plugin has item listings, and I want to search for items in the listings. Here is my code: <form method="get" action="<?php echo ...
4
votes
1answer
2k views

In what order does WordPress load plugin files?

In what order are plugins loaded in WordPress? And within a particular plugin's folder, what order is followed for loading?
3
votes
2answers
395 views

Sidebar Generator issue

I hope this doesn't come across as very dumb (to some extend it is, however), but I am having a hard time dealing with the Sidebar Generator. In the description it is stated that "Now supports themes ...
0
votes
2answers
2k views

wp_mail() is not working on server

i am breaking my head from last 1 hour but not getting any idea that what's going wrong with my code... i am developing my own plugin and i am using wp_mail() function for sending mail in that but ...
0
votes
0answers
27 views

Wordpress Suggest.js file with no return

I'm trying to use the suggest.js file to autocomplete an Input textField. The suggest.js is included in the page. I used this code to search for the value on an external page: ...
1
vote
1answer
760 views

How can I make a custom post type sticky?

I installed the "Sticky Custom Post Types" plugin, and I added this code to my function.php: function wpb_cpt_sticky_at_top( $posts ) { // apply it on the archives only if ( is_main_query() ...
0
votes
2answers
320 views

Error uploading plugin zip file

I have a question here and hope you guys can help me with that. Couldn't find the exact answer from search and I am not a coder myself. I was given the instruction (to change plugin name) by my ...
-1
votes
2answers
29 views

Trying to insert a row from a Plugin

<?php require_once("../../../wp-includes/wp-db.php"); wpdb::insert( 'wp_options', array( 'option_name' => 'data1', 'option_value' => 'data2' ) ); ?> I have this code ...
0
votes
0answers
19 views

lazy loading facebook feed on scroll

I'm currently using this plugin on my site: https://wordpress.org/plugins/ajax-load-more/ it allows posts/excerpts to be dynamically "lazy-loaded" ajax style as the user scrolls down the page. I'm ...
0
votes
0answers
59 views

Plugin installation error in wordpress

I am trying to install plugin by tgm class, when click on install plugin that is Layer Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s ...
0
votes
0answers
20 views

Op-tin bar hide sticky header when scrolling the page

As you can see in this link http://marketingilluminated.com/ At the top the op-tin bar hides the sticky header when you scroll in the page. I would like to know if there's a solution to keep them ...
0
votes
1answer
243 views

wp_mail - using a custom field value

Can this work? I want to send a email when a post is published to the recipient, that is called in custom field. EDIT I changed the code to another example I found. function ...
0
votes
0answers
49 views

Redirect to Theme my login profile

I would like to redirect admin's editing of user using path "user-edit.php?=....", and redirect to mydomain.com/your-profile/ : "Your profile" is the profile created by the theme my login plugin ...
0
votes
1answer
51 views

Headers already sent when I try to add headers via a shortcode

I've run into a headers already send problem while adding functionality to one of my plugins. I wish to send my 301 redirect header after some checks to deteremine if the contents of the page is ...
0
votes
1answer
37 views

How can I retrieve data within my widget

I have a Widget which I am creating but my quesiton is how do I access my custom table which I created via my plugin. I am attempting to fill the dropdown from the table called tfp which contains the ...
2
votes
1answer
1k views

Issues creating a tinyMCE plugin that creates a custom link

I'm working on a plugin that works similar to the "link" button on tinyMCE: The user highlights text -> presses a button -> enters text into a box in a thickbox popup -> submits the form -> the user ...
1
vote
1answer
97 views

Publish author posts only with editor approval?

I run a multi author blog and i am looking for a non plugin solution. The default author user role in Wordpress can publish posts without any approvel - look at Role Capabilities Wordpress Codex. ...
11
votes
2answers
513 views

How do I exclude plugins from getting automatically updated?

There is an opt-in filter that allows all plugins on my site to receive automatic updates: add_filter( 'auto_update_plugin', '__return_true' ); I like this feature, but I don't want all my plugins ...
0
votes
1answer
318 views

How to add a custom page template selector to a custom taxonomy?

I am trying to add the custom page template selector that can be found in the "edit page" screen for pages to a custom taxonomy. The custom taxonomy is product_cat created by WooCommerce. I am using ...
0
votes
0answers
24 views

Remove plugin page menu items but keep plugin active

I am in the process of creating my first plugin for WordPress. However, I have one small issue, I had to add a plugins page (5 of them to be exact): add_plugins_page('Apollidon Kalendar', 'Edit ...
0
votes
0answers
17 views

Adding Image input to a plugin post

Here is my problem. I have a plugin running in my wordpress site that posts a person biography. It is designed so that the image for the biography is inserted with the content. I want a specific ...
0
votes
1answer
296 views

Load plugin selectively for pages or posts, etc

It's possible select which plugin load by page or post, because i have 35 plugins and many of these no necessary in many pages or posts and only for some pages, how can do this? I've tested beta ...
-1
votes
1answer
19 views

Developing a Site Like AllTop.COM - RSS Reading Problem

I am creating a website like AllTop.COM. I use Super RSS Reader Plugin for that( Even though plugin gives a widget, I have added that widget inside posts) . Assume that I have added about 50 blogs ...
1
vote
1answer
46 views

Deactivate plugins only for mobile devices

I tried to use deactivate_plugins function to deactivate a plugin only for mobile devices. It worked: when I enter site on mobile phone the plugin is deactivated, but when I enter site on PC the ...
6
votes
2answers
8k views

Disable plugin / plugin action via theme

I have installed the Google Analyticator plugin on my site. I am also using the MobilePress plugin to serve up a theme designed for non-smart-phone mobile browsers. I have set up Google Analytics for ...
2
votes
5answers
247 views

Upgrading Wordpress 4.0 asks for FTP password

I was able to upgrade Wordpress 4.0 on my local machine, and I also just updated some plugins on the production machine, but when I try to update Wordpress 4.0 on the production machine, it is asking ...
-1
votes
1answer
27 views

Like/Dislike plugin crawler problem

I'm making new plugin where users can vote like/dislike my posts. But i have a problem with this plugin. Crawler bots can vote, and i don't know how to prevent it. Vote links have no follow, but i ...
0
votes
0answers
24 views

Adding custom page to the nav admin menu [duplicate]

I have added custom WordPress admin menu and pages, however, I would like for it to appear in the "Appearance > Menus" section so that the user can add it in the menu structure of their website. ...
0
votes
0answers
25 views

$wp->query_vars redirection giving me error

I am using plugin which is working based on short code.And I want to redirect to one template for single location. And I have given href like this to the plugin- ?wpsl-id= So basically what I have ...
0
votes
0answers
14 views

How to edit plugin to only display on specific post types, instead of all posts and pages

I've installed a plugin (allows users to save favourite posts to a list: http://goo.gl/9LEvjy ) but by default it displays on all posts and pages. I want it to only display only on posts, NOT pages - ...
1
vote
2answers
2k views

Show category images on single product page and product overview page

I am running a woocommerce shop and I have products which are in multiple categories. I would like to show the category images on the single product pages. And also on the product overview page. I ...
1
vote
0answers
111 views

WordPress Liveblog plugin: How to associate uploaded images with comments? [closed]

I'm using Automattic's Liveblog plugin which is also available on GitHub. Background When a user uploads an image, the following happens: a new post of post_type 'attachment' is created. a new ...
0
votes
1answer
61 views

Automatically set posts to NoIndex depending on category?

I'd like all new posts with a specific category to automatically have NoIndex applied. There are various plugins - e.g. Wordpress SEO - which make it easier to manually select posts for NoIndex. But ...
0
votes
3answers
6k views

Hide price & title in store thumbnail dispay? [closed]

I'm setting up a WooCommerce site to sell shirts. I have the front page (and the "Store" page" set up to show a grid of thumbnails of the shirt designs. Each item has the price and the title of the ...
0
votes
1answer
48 views

How to call plugin path in JS?

I am using wp-store-locator plugin and I want to add plugin directory path to my JS. html = "<li data-store-id='" + id + "'><div><p>" + storeImg + "<strong>" + store + ...
-2
votes
1answer
41 views

Use a Wordpress Plugin in non-Wordpress .php page [closed]

I have a website consisting of html pages but with one blog page in Wordpress. There is a news ticker plugin on this wp page which I would like to embed into the other pages of the site. How can this ...
0
votes
0answers
26 views

Can I use pretty URLs for paramaters without query_vars?

I have a plugin that retrieves data from custom non-WordPress tables. I'd like to be able to add pretty URLs to retrieve the data, but as far as I can tell, if I use the add_rewrite_rule and ...
0
votes
1answer
52 views

wp_logout_url($redirect); is not working in wordpress

I am writing a simple WP plugin that could log the user in and out. As far as login is concerned its working good but I cannot log out, through my plugin. Logout doesn't work after I login. I have ...
0
votes
0answers
36 views

WP-API not working on with MAMP

OS: MAC OSX 10.9.5 MAMP: v 3.0.3 PHP: 5.5.10 WP: 4.0 Hey all, I can't seem to get the WP-API plugin (https://github.com/WP-API/WP-API ) working locally on my MAMP setup. When I test the /wp-json/ ...