Tagged Questions

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
0answers
33 views

Display wordpress post's in popup?

I am developing a wordpress site with some blogs.Each blog post will have an READ MORE link.when clicking the READ MORE it should open a popup box with that post contents. Can any one suggest me on ...
1
vote
1answer
22 views

Getting user roles in plugin files

I have a plugin in which I need to use the get_editable_roles() function but I keep getting a fatal error saying that the function does not exist. In my main plugin file I have this code: function ...
0
votes
1answer
143 views

Errors and notices after update to WP 4.0

I recently updated my WP 3.8 to WP 4.0 . Then few errors and problems start appearing. On Dashboard under "Wordpress News" it says: RSS Error: WP HTTP Error: name lookup timed out Other than that ...
0
votes
1answer
48 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
0
votes
0answers
30 views

how to load post content when a post title is hovered using ajax

i have a wordpress blog and i need to make my posts content show up when vistor hover the title of the post on my index page with no need to get into that post , exactlly like in the following site : ...
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 ...
0
votes
1answer
35 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 ...
-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
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 ...
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 ...
0
votes
0answers
26 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: ...
0
votes
1answer
66 views

wp-admin will not redirect to wp-login.php

For some reason my plugin is causing the /wp-admin/ to not redirect to wp-login.php as it should. I've narrowed it down to these two lines of code: foreach( glob($this->path['modules_dir'] . ...
0
votes
0answers
18 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
57 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 ...
-1
votes
2answers
28 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
18 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
0answers
47 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
50 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 ...
1
vote
1answer
85 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. ...
0
votes
0answers
21 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 ...
-1
votes
1answer
18 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 ...
-1
votes
1answer
25 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

$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 - ...
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. ...
2
votes
2answers
78 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 ...
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
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
0answers
21 views

Custom loop for getting products flagged as new

I was looking for a way to build a custom loop to get the products flagged with the "new" label. This label is actually a property given by WooCommerce to new products, as long as they were created in ...
0
votes
1answer
51 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
35 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/ ...
0
votes
1answer
41 views

Check if User exists in Wordpress Multisite

Hi I am creating a custom Form to Register a new user in Backend. The problem is how I check if the user exists in another website of my Wordpress Network? And if not how can I register the new user?
0
votes
0answers
51 views

Autoloading a PHP class – working outside, but not inside WordPress plugin

I am thinking about using autoloading in a plugin. Outside of WordPress (as a test) it works as expected, but inside the plugin there are some problems. The directory structure I used for testing: ...
-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
27 views

Incentive theme - Getting ’You do not have sufficient permissions’ while trying to install plugins

After making a clean install of wordpress and theme folowwing the installation guidelines from readme.html, I can not install the WPBakery Visual Composer and Revolution Slider plugins because I get ...
0
votes
0answers
12 views

Move plugin files to a different server

I'm in the process of speeding up my wordpress site load time. One of the things I have started doing is using a CDN server to serve my static resources from - this has had a drastic different. What ...
0
votes
1answer
53 views

How can I list custom post type categories of portfolio

this code below lists wordpress categories and works <form action="<?php bloginfo('url'); ?>/" method="get"> <?php $select = wp_dropdown_categories('show_option_none=Select ...
1
vote
0answers
110 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
2answers
65 views

wp_head is too slow

I am using wordpress 3.9.1 for one of the website. I am getting slow response around 35 seconds. I did investigation & found that wp_head is taking too much time. Further, I debug & found that ...
0
votes
0answers
31 views

Fatal Error message after trying to add new plugin

I've just tried to install the NextGen plugin and I've got this error message: Fatal error: Call to undefined function set_url_scheme() in ...
0
votes
0answers
24 views

theme_mod and option type in WP_Customize_Manager's add setting API

The WP_Customize_Manager's add setting API support the type argument: type Optional. Specifies the TYPE of setting this is. Options are 'option' or 'theme_mod' (defaults to 'theme_mod') What is the ...
0
votes
1answer
78 views

dirname( __FILE__) returning wrong directory inside plugin

Inside my plugin I'm adding the Advanced Custom Fields files. Part of including it in the plugin is changing the default directories using dirname(__FILE__). In step 3, include_once works fine. So, ...
2
votes
0answers
51 views

Auto Load Plugin Hooks inside Must Use Plugin

I am creating a custom MU plugin to run on a multi-site network. I am working on a function that will dynamically include files containing additional action and filter hooks based on the active ...
0
votes
1answer
21 views

Add custom message to the plugins page of Wordpress

I'd like to add a banner at the top of the plugins page (where you update plugins) that reads "Please do not update plugins". I know I can use the admin_notices hook to attach the message, but how do ...
0
votes
0answers
16 views

How to update plugins in a distributed wordpress scenario?

I have wordpress running with nginx behind a load balancer. Everything is running well. However, given that I have multiple sets of files, what's the best way to update them all? Ansible? Looking for ...
0
votes
0answers
51 views

Preview with Custom Post Type Not Working

At this point I have tried everything I know to fix the issue. Issue: preview only works right after a custom posts is loaded or updated. If you make any changes or hit preview twice without updating ...
-2
votes
2answers
46 views

how to display the page content in popup window?

Created Main Menu with 3 menu item(Home About,Apply Now),my task to display the content of "Apply now" page in a popup while clicking "Apply now" from menu?