Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
263 views

Custom random quote widget breaks when used in multiple sidebars

I've created a custom widget and placed it in functions.php. You can see the widget here: http://pastebin.com/3uWpeaFx (I've also created a similar widget that grabs a random image; it's included ...
bigsweater's user avatar
1 vote
1 answer
86 views

Grab Wordpress Salt Data From URL

I'm looking to grab only the values of the Wordpress salt information from this URL with PHP: https://api.wordpress.org/secret-key/1.1/salt I want to target the second set of values within single ...
Ryan Dennler's user avatar
-1 votes
1 answer
142 views

filter just a portion of plugin function

I'm trying to edit just a few pieces of bbpress' breadcrumb default settings, but the filters I've tried end up replacing the whole function. How do you replace only bits? Here is the filter as it ...
kristina childs's user avatar
0 votes
0 answers
75 views

How to add a handler for a button in plugin?

I am working on my first plugin, and I am having some confusion. I am trying to figure out how to set a handler for a button on my plugin UI. Here is how the button is displayed: <li class="upload-...
user1632018's user avatar
0 votes
1 answer
107 views

Disable plugin function

I want to hide most of the backend links added by TinyMCE Templates plugin. I have problem with 'Copy to a new template' link inside Publish box. Plugin code: add_action('post_submitbox_start', array(...
stein's user avatar
  • 1
2 votes
1 answer
92 views

Modifying Footnote Plugin for Descriptive Title Attributes

I've been struggling for a couple hours now to get this working... Hopefully someone here can help me. I just started using the wp-footnotes plugin, and I'm trying to set the title attribute on ...
Austin Sweeney's user avatar
1 vote
0 answers
33 views

How to change permalink to include custom post type

Is there a way to add custom post type to permalinks with a plugin or otherwise? This is what I am trying to accomplish: mysite.com/projects/food/burgerking mysite.com/projects/wine/cherryvineyard ...
user1724434's user avatar
1 vote
1 answer
120 views

Execute a function using ajax

I have a function called function getSingleAmazonProduct($asin=''). It returns an amazon product. I have a form field to enter the $asin. <div id="asinform"> <form id="...
PrivateUser's user avatar
  • 3,469
0 votes
1 answer
120 views

Trying to output a "Most visited blogs" list in wordpress multisite

Does anyone know how to get a "most visited" list out of Wordpress Multisite? I got alot of bloggers and have been looking for a way to output a top 10/20 list of most visited blogs, but cant find ...
Demilio's user avatar
  • 883
0 votes
1 answer
167 views

How do I create pages within a Wordpress post?

I run a music blog and I want to do a countdown of our top 50 tracks of 2011 so far. There's no way that I want to add 50+ images and Audio Players into just one post, and I don't want to break the ...
Mark Spivey's user avatar
0 votes
0 answers
64 views

How to structure plugin in to functions?

So I have customized a few plugins before, but never developed one from scratch. One thing that I have struggled with is structuring my functions. I found the following snippet and wonder how YOU ...
StenW's user avatar
  • 202
0 votes
1 answer
130 views

grab or load text on demand

What i want to do I want some content (could be stored any where in a post or custom field) to load only when the user clicks for it to load. This content could be any thing (text,images,html etc) ...
phantom.omaga's user avatar
0 votes
1 answer
57 views

how can authors to define custom pages?

I have a options page and i use this code. I want this, I add author id on sometext field (e.g 3,2,5,11 ) and my author.php redirect custom author page. My author.php <?php $post = $wp_query->...
Genxer's user avatar
  • 195
0 votes
1 answer
45 views

date function not correctly returning date

This code is being used to generate the date of a post in wordpress: <span class="the_date">Posted: <?php echo get_the_time('F d, Y'); ?></span> However it is not resutning the ...
David Tunnell's user avatar
1 vote
1 answer
94 views

plugin development: problem with functions

I have this very basic scheme to build my first plugin, but now I have one problem: when I put a hook to add_action on point 1 works, but i need to get the color from shortcode function, so, when i ...
greenbandit's user avatar
0 votes
1 answer
156 views

Defining the value of a variable before a function?

I'm trying to edit a plugin so that it only shows it's submenu if the user is an administrator but I don't know how to define the value of the variable before the function: function load_view( $name, ...
fxfuture's user avatar
  • 1,337
0 votes
1 answer
76 views

How to list posts that appear in two categories

I would like to list all posts that appear in the current category being viewed that are also posted to a second category. Example Pictures : LINK For instance, a listing of the common posts between ...
Genxer's user avatar
  • 195
0 votes
0 answers
41 views

Can anyone tell me why I can't edit a plugin when it is installed without having to re-install?

I am using a shortcode plugin as a framework for the short codes I want to add that go with my theme. I decided to just include the plugin in a repo for the user to dl so I am not building theme right ...
user1632018's user avatar
0 votes
1 answer
205 views

Pass strings to plugin function [closed]

I have simple function to show an image: function helloworld() { echo '<img src="'.$link.'" alt=".$alt." />'; } I would like to pass strings link and alt to the function something like ...
Badr Hari's user avatar
  • 289
0 votes
1 answer
85 views

Building custom pages with a video player

Hey i am trying to learn wordpress developement on my own, I'm building a celebrity gossip blog and i need help. I want to build a video page. Does anyone know of a plugin or anything that i can ...
Terrell Anderson's user avatar
1 vote
1 answer
73 views

Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)

Does WordPress validate inputs made to all built-in functions that access the database to protect against SQL injection vulnerabilities or do we have to validate before passing them?
Can't Tell's user avatar
0 votes
1 answer
83 views

Removing the custom_image_header from wp_head

I am looking to remove the custom_image_header from the wp_head. I would like to use this in a more manual way throughout my theme. I understand the general approach for this is to include CSS in the ...
jnolte's user avatar
  • 223
0 votes
1 answer
24 views

Execute a function when the entire page is displayed

How can I execute a function, which is in a plugin, only once the entire page is displayed ?
Lucas Willems's user avatar
0 votes
1 answer
57 views

What is the most efficient way of adding additional functionaliy for admin only

I'm trying to figure out the best approach to add additional functionality that will only be utilized by admins via /wp-admin. What's the best way to implement so that resources aren't being wasted. ...
Matt's user avatar
  • 3
1 vote
1 answer
34 views

Which file of wordpress manage plugins functionalities?

Which file of wordpress manage the plugins functionalities. For example if a have to insert another rule in a plugin functionality where i go to modify?
walves's user avatar
  • 113

1
7 8 9 10
11