Tagged Questions
0
votes
0answers
11 views
Disabling a plugin when logged in as admin [duplicate]
Is there any way to disable a specific plugin when logged in as the administrator?
Currently I'm using a plugin called Wp-Minify and I would love to be able to have the ability to pause it when I'm ...
0
votes
0answers
44 views
How to Display Sequential Post Number Count
I know this has been answered at least a couple of times already and there is an answer out there from alchymyth2010 but I am looking for a different solution if possible because I have a fairly big ...
1
vote
0answers
39 views
Ajax : Call undefined function plugin_function() … can't call any plugin function
I use a Ajax query to show some content, but I can't use any of my plugins functions.
Javascript :
$('#load_more').click(function() {
var data = {
action: 'load_more',
id: ...
0
votes
1answer
34 views
Requires PHP version 5.3.0
When I try to install "Background Manager" plugin I am getting this error "The plugin "Background Manager" requires PHP version 5.3.0 or better, but version 5.2.17 was detected". Could anyone suggest ...
-1
votes
0answers
39 views
Upload image functionality in menu admin
I want to create a custom plugin or function inside functions.php where it allows you to select an image from default Wordpress media library and allocate for each menu. I then want this to be passed ...
0
votes
0answers
50 views
Press this! not working
I am trying to debug a Press this function on a site {Adult Contents}
This issue is, images on the page does not add up and does not show...
javascript code for press this button is
javascript:var ...
2
votes
1answer
132 views
Generate Advanced Custom Fields box in custom admin menu page
I have created an custom admin menu page called FCC Youtube with add_menu_page function
which has some custom fields I manually generated via HTML and PHP:
code ( just the part how I created this ...
0
votes
1answer
122 views
WooCommerce Tabs
In my theme, I have the WooCommerce plugin installed and would like to rename the "Catalog" tab, located under the WooCommerce > Settings submenu page.
Am I able to do this from my functions.php ...
2
votes
0answers
27 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 ...
0
votes
0answers
26 views
previous_post_link() : Within all categories except one
According to this tutorial if I want to display link to previous post in the same category, I can use the following code:
<?php previous_post_link('%link', 'Previous in category', TRUE, '13'); ...
0
votes
1answer
59 views
Custom Function for SEO by Yoast plugin
We use a very customized version of WordPress for some of our index/root site pages where we use a custom meta box for custom permalinks. What we are looking for is a custom function that basically ...
0
votes
1answer
50 views
Function to prevent users from trashing comments
Is there any way to prevent/hide trash button for comments?
Note that I only want to prevent users from emptying the trash for comments. Can't seem to find a way. Is there any possible way to do that ...
0
votes
0answers
41 views
Change image links via functions.php
I have seen many functions that auto add a class or "Rel=" to an image, what I want is something similar.
I hope someone can help me do this function, I would like to automatically (via ...
0
votes
0answers
38 views
Wordpress installed under Magento - Php not executed in widgets [closed]
I installed Magento and under a subfolder of magento root (wp), I installed wordpress. Everything works well, excepting that php can't be executed if it's defined in widgets.
I created this shortcode ...
0
votes
1answer
136 views
Different registration form for different roles
I have customised the worpress registration page by adding new fields using the Cimy User Extra Fields plugin so my site is now fine for allowing users to register as contributors.
I now want to ...
0
votes
2answers
36 views
How to reset the plugins without deactivate the plugin
function set_copyright_options() {
delete_option('ptechsolcopy_notice');
delete_option('ptechsolcopy_reserved');
add_option('ptechsolcopy_notice','Copyright ©');
...
0
votes
1answer
44 views
Doing action based on input from options menu
This is my first time writing plugin. I have managed to get options menu with the html form:
<?php
add_action('admin_menu', 'menu');
function menu(){
...
1
vote
1answer
68 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 ...
2
votes
0answers
62 views
Placement of Code in Plugin for hooking `save_post`
I ran into a strange Problem today developing a new Plugin.
I set it up as usual, creating the f711-roomprice folder in the Plugindirectory, and creating the f711-roomprice.php as well as an inc ...
1
vote
1answer
186 views
Edit Yoast SEO breadcrumbs output
I want to customise the output of Yoast SEO breadcrumbs, I have this so far which works great:
add_filter( 'wpseo_breadcrumb_single_link', 'ss_breadcrumb_single_link', 10, 2 );
function ...
1
vote
1answer
53 views
I would like to use create a function in my custom plugin to tell WP to use a different header
I am well aware of the use of child themes for this. I know about get_header($name). I already understand the use of conditional tags.
I want my plugin to remove the function:
function get_header( ...
1
vote
0answers
237 views
jQuery Plugin to use Wordpress functions in AJAX request
I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
0
votes
3answers
63 views
Display additional page templates and a sidebar on plugin activation
I'm developing a child-theme off of the Twenty Twelve (1.1), using Wordpress (3.5.1) and the Woocommerce plugin (1.6.6).
I've noticed that the problem with creating the online shop, single product ...
0
votes
1answer
39 views
Call current post parameters inside a plugin
I edited the plugin WP User Frontend (for editing posts from frontend) to have two different edit pages for two different post types.
Here's the original function which handles the edit_link.
...
2
votes
2answers
41 views
Display All Non-Used Plugins
My company currently has a multisite of about 20 sites, and growing every day. We're trying to go through the plugins and set standards. IE, forms use plugin X. However, we have not found a single way ...
0
votes
1answer
34 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 = ...
2
votes
1answer
59 views
Set a User as Author of all 'New Posts' posted
An Author 'XYZ' is need to be set as the Default author of all New Posts. Irrespective of the actual Author posting the content, the post should be saved by this author 'XYZ'.
Is there a Plugin or ...
0
votes
0answers
22 views
How to pass CLASS function with arguments to add_action? [duplicate]
Possible Duplicate:
Passing a parameter to filter and action functions
This works:
add_action('hook', array($this, 'someFunction'))
These not:
add_action('hook', array($this, ...
0
votes
1answer
36 views
Can't get custom user meta to show in header
I have used Pie Register plugin to add a "Phone" field.
I tried every method in the book (that google fetched for me, so far) to show it but it shows an empty array although the field is not empty ...
0
votes
0answers
46 views
Function to hide wordpress theme's wrapper [closed]
I am trying to hide the main div containing the theme in my wordpress. I am just testing something. I can simply use css to display none the div, but some themes have the wrapper with a different id ...
0
votes
1answer
53 views
How can i listing current category and Featured Category post list?
I have a Featured Post Category. Im marked some post Featured. When i viewing a category page(e.g. Sport), i want to list on sidebar both marked post list (e.g Featured and Sport,)
I tryed with that ...
0
votes
1answer
51 views
How can i list random author?
Im listing current category of all author list but I want to list random author list from current category.
I was try 'order' => 'RAND', RAND code its not worked.
My Code:
function ...
-1
votes
1answer
71 views
Notifications Bar on home page only
Is it possible to create an "Alert" button that can be turned on and off thru wp-admin.
Of course the "Alert" button im asking for is to be published at the main page, but can only be turned on when ...
0
votes
1answer
64 views
Wordpress get_avatar function not correct working
My code doing this, listing which author have posted in the current category. But get_avatar function not correct working. Im Using Simple Local Avatar Plugin. It is working author.php don't have any ...
0
votes
1answer
46 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 ...
-1
votes
2answers
51 views
Wordpress list the author of the category
How can i list the author of the category? (Wordpres)
My blog have three author and i will list who written post in a category?
For example:
CAT NAME: INTERNET AUTHOR: JOHN, DOE, ALEX
CAT NAME: ...
2
votes
1answer
188 views
How to export comments in WordPress?
I want to export my comments to Excel, PDF or Word. The format really doesn't matter, I just want them exported.
I tried the Export Comments plugin, the standard one, but couldn't get it to work, I ...
1
vote
1answer
113 views
Using plugin functionality in external php script not working
I am encountering a strange problem which I couldn't solve so far.
I'm calling a .php script via cronjob (Debian/GNU Linux).
To use wordpress functionailty I added:
define('WP_USE_THEMES', false);
...
1
vote
2answers
174 views
How to create TEMPORARY Download links in a wordpress POST?
I'm creating a WordPress blog with some members-only page. In those members-only posts I have my own tutorial download links which i have uploaded for FREE. Problem is I want them to stop sharing the ...
-1
votes
1answer
28 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 ...
0
votes
1answer
591 views
Adding Shortcode to Text Widget
At the moment, I'm running WordPress v3.2.2 (soon to upgrade to v3.4.2), and am trying to insert shortcode to insert Issuu into a text widget on our sidebar. The WordPress plugin I installed and am ...
0
votes
1answer
87 views
Adding a Tag Parameter / Filter to My Shortcode
I have this plugin that displays category featured image thumbnails for each post via shortcodes.. like so,
[categorythumbnaillist 3] (3 being the category of course)
I would like it to only show ...
2
votes
1answer
74 views
New Plugin: Post update pushes a copy as a revision
I've been working alot with editing of posts after they've been published. I know I can hit update on the post to just update it, but I want to have the journey of revisions available for users to ...
0
votes
2answers
52 views
Automate paragraphs in a post page to have a unique anchor link
I have this idea for linking to a paragraph within a post. It would work by every paragraph within the_content() on post pages having an anchor tag automatically placed before it, like this: <a ...
1
vote
1answer
57 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 ...
0
votes
1answer
118 views
JQuery prepend a function
I am trying to see where I went wrong with this code. I was trying to prepend the avatar and user meta above the admin menu. I get header already sent messages as well since the code is just right ...
0
votes
1answer
65 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 ...
0
votes
1answer
85 views
More gentle way to hook Wordpress custom url
I have written a plugin named foo, and I want when user typed url /hello and it will display the string world
There is an existing psot[1] use the following code
if ($_SERVER["REQUEST_URI"] == ...
0
votes
1answer
89 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 ...
6
votes
3answers
307 views
Where do I put the code snippets I found here or somewhere else on the web?
Many posts here or somewhere else contain code, but they do not say where to put it.
Example:
I have found this post: How do I turn off 301 redirecting posts (not canonical)?
I'm a newbie with PHP. ...
