The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
18 views

plugins_url() incorrectly returning wp-include directory

I doubt there's a bug with plugins_url() but this is some odd behaviour I'm seeing. I have the following in an activated plugin function include_masonry() { wp_enqueue_script( 'masonry', ...
0
votes
0answers
14 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
24 views

How do I link an image in my plugin so it displays on WordPress?

I'm creating a plugin for a college project. The plugin is very simple: it searches for name of the site address and upon finding it in a post, it outputs the site address with an image. However, I ...
1
vote
1answer
450 views

Dropzone.js and wordpress plugin

I'm currently using Dropzone.js within a personal plugin and I'm able to create the dropzone, however when I pass in plugins_url as the action I'd like to get the files and add them to the wordpress ...
0
votes
0answers
28 views

How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?

I have a framework for WordPress that can be embedded into either a plugin, a theme or a child theme. In order to return proper URLs, the script needs to determine from where it is being executed. I ...
0
votes
2answers
82 views

What's wrong with my use of plugin_url()?

I keep getting the following message in the browser Fatal error: Call to undefined function plugin_url() in My code at present: add_action( 'wp_enqueue_script', 'load_jquery2' ); function ...
0
votes
1answer
475 views

reCAPTCHA on page template without plugin

I have a template for contact us page which includes a small form with few text fields. I want to add Recaptcha to avoid spams. I already use WP-recaptch plugin which only works for default ...
0
votes
1answer
101 views

How to use plugins_url() inside PHP stylesheet file [duplicate]

I created a plugin and use php file as stylesheet file PHP style sheet file: <?php header('Content-type: text/css; charset: UTF-8'); $x_position = 0; $y_position = -40px; ?> ...
1
vote
1answer
350 views

plugins_url('',__FILE__) != WP_PLUGIN_URL with sym links

For one of my many sites, plugins/plugin-name is a sym link pointing to universal-install/wp-content/plugins/plugin-name. echo WP_PLUGIN_URL displays what I expect. echo plugins_url(); displays what ...
-3
votes
1answer
31 views

Change from blogger to wordpress

I would like to change my blog platform from blogger to wordpress. My website is: http://www.hdpeak.net I would like to keep a similar template and all the posts. What are the necessary steps I ...
0
votes
2answers
143 views

Widget redirecting to home page

Am trying to create a widget that searches for names. The searching and all that is fine, but when I hit submit, I get returned to the front page. I tried messing with the action="", but no matter ...
0
votes
1answer
143 views

check if a file in a plugin folder exists from a locale installation

I need to check if a file exist in my plugin dir: if (fileexists) { ... } else { ... } However, if in place of fileexists I use file_exists(WP_PLUGIN_DIR . "/myplugin/myfile.ext") it returns ...
1
vote
1answer
205 views

plugins_url() works everywhere but wp_reqister_script()

So I should probably mention up front that I'm developing a plugin so my url is 'mysite.com/plugin' (Just in case this is related to my issue. So, In my main plugin file (myplugin.php) I have added ...
4
votes
1answer
645 views

Add forward slash on categories url (serve one version of a url)

How can I a add forward slash on categories URLs and serve only that version of a category (meaning URLs not ending in forward-slash will redirect to URLs ending in forward slash). I manage to remove ...
0
votes
1answer
1k views

How to call images from your plugins image folder?

I've done a lot of research and learned a lot about WP constants and function usage for getting image paths etc. but still my original problem persists. <img src="<?PHP echo WP_PLUGIN_DIR . ...
0
votes
1answer
45 views

Make custom system url

Let's say my site is example.com I want to create example.com/portfolio without creating a page. I just want to execute some PHP code and display a bit of HTML. Is there any way to create "sytem ...
1
vote
1answer
467 views

Access bloginfo, get_option, and plugins_url from a non-core php file

I am creating a plugin that has a php file in the plugin directory which is accessed directly via a custom rewrite url. I need this file to be able to use the three functions mentioned in the title. ...
0
votes
0answers
243 views

Wordpress Plugin function callback by URL [duplicate]

Possible Duplicate: How to Rewrite Wordpress URL for a Plugin I'm creating a plugin for Wordpress. Is there any way or API to make plugin receive a path or URL so that it can trigger or ...
1
vote
2answers
975 views

plugins_url() incorrectly returns a url with www subdomain

I'm working on a plugin which we'll call "my-plugin" for the purposes of this question. The my-plugin directory looks like this: my-plugin/ |- image.jpg |- script.js |- script.php |- plugin.php ...
2
votes
1answer
571 views

plugin_dir_url() adds path to url

For some reason I get the following output from var_dump( plugin_dir_url( __FILE__ ) ); http://local.dev/wp-content/plugins/C:/development/xampp/htdocs/vanilla/wp-content/themes/twentyeleven/ ...
0
votes
2answers
779 views

URL rewriting for WordPress Network (Multisite) subsite

We have an install of WordPress Network (Multisite) that has multiple blogs running under the url blogs.exampleurl.com where each subsite is blogs.exampleurl.com/site1 /site2 etc... We have a user ...
1
vote
2answers
176 views

Are there functions for file paths, instead of just urls

Is there any equivalent to functions like plugins_url() and content_url() that give you either the relative paths or the file path. For instance, instead of ...
0
votes
1answer
4k views

Posts URL structure like site.com/category/the-post-title

I'm new with wordpress and I would like to understand better if it's possible to create pages with an url based on the category and then the post title, so: something like ...
4
votes
1answer
1k views

Is it safe to pass directory path to plugins_url()?

plugins_url() function accepts plugin slug or file path to build URL for. I have following directory structure: /wp-content/mu-plugins/someplugin/css/file.css ...