0
votes
0answers
36 views

Pass the post ID

Okay what I am trying to do is run JavaScript of the user is not logged in! I have been given the following script by the maker of "Restrict Content Pro" (The plugin I am using) function ...
0
votes
0answers
80 views

Open media popup to specific tab

The project I'm working on right now uses the wp brightcove plugin and has it added to the media popup window as a separate tab. I've been asked to make it so when someone clicks a video button (which ...
0
votes
1answer
31 views

How to add Wordpress JS Script Links

Hi I do have a code here from my HTML. I just dont know/forgot on how to link scripts in wordpress... <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> ...
1
vote
2answers
60 views

How do I add JavaScript that will execute on all my sites in Multisite?

We are creating an internal network of sites using MU and there are some small things we would like to have globally on all the sites without having to add them individually for each site. I would ...
3
votes
1answer
453 views

Menu Link Redirect Based on Username or User ID

I am building a client portal where my clients can log in and see all their pending projects, completed projects and create new projects. Though I'm stuck at the start. The dropdown menu is called ...
0
votes
2answers
367 views

custom css and javascript not working on page defined as template?

I have written a web-page which is a web-app (a simple card database using php, mysql, and styled with css3). The page works as expected. A friend of mine proposed me to use wordpress for everything ...
3
votes
1answer
102 views

What is the best practice for customizing a plugin's JavaScript/jQuery?

Most well written plugins support a safe means for a developer to customize/theme the plugin by copying PHP files to the theme directory and modifying the copies rather than the original plugin file. ...
0
votes
1answer
373 views

Call javascript functions from each page

Is there a plugin that supports calling custom functions that you've created? Like, page A -- I want to call function x $(document).ready(function(){ call_function_x() }); page B -- I want ...
1
vote
1answer
482 views

Limit the Excerpt field in WP-Admin in words

Is it possible to limit the Excerpt field on the post page in words? Note that I am aware that it's possible to echo the excerpt and limit it in words, but I want the field itself to limit the amount ...
1
vote
0answers
548 views

GeoMashup plugin: how to customize cluster markers / icons?

Is there a way to customize the standard cluster icon marker which GeoMashup uses to display nearby posts grouped in a certain area? By default it's a red dot in V2, or a blue dot in V3. I nee to ...
2
votes
1answer
583 views

How to use get_option() without any filter?

I'm using the newest WordPress 3.3.1 and newest qTranslate 2.5.27. I have made some an AJAX script which returns a value and message in the current language. Here I get my first problem, I solve it ...
2
votes
1answer
469 views

dynamic external javascript generated using php

How to write an external javascript file with dynamic variable values generated using php from wp db values? So instead of using wp_localize_script for inline js variables, I'd like to use ...
1
vote
1answer
857 views

simple expandable vertical menu, java script problem

I am trying to create a simple expandable menu in wordpress. Bellow you can see the javascript I am using (copy and mix from internet). <script type="text/javascript"> ...
8
votes
3answers
7k views

Validating Custom Meta Box Values & Required Fields

Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes. I am looking to get expert opinions on how ...