0
votes
1answer
238 views

When using a user role editor how to find out any plugins' or themes' role?

Suppose I'm using a Theme which has a custom panel in the admin area, or I'm using a Plugin, has similar Admin menu button. But all such button are only visible to Administrator. When I'm loggin in ...
0
votes
1answer
167 views

Routing 'fake' sub sub posts

I currently have these custom permalink rules: /%category%/%postname%/ I'd like /%category%/%postname%/%sometext% to display the same as /%category%/%postname%/ - from there, I will either use PHP ...
0
votes
2answers
120 views

How to align bold,italic and underline in wp-admin?

When Im in wp-admin and editing a page and whant to make underline, bold and italic it dont appear on the site. I understand therese something i have to define in the css or thru wp-admin ? NOTE: I ...
0
votes
2answers
143 views

How to filter categories of a post

Is there any way to filter the categories of a post? I am using wp_get_post_categories( $post -> ID ); i want to filter this listing i.e. if(post_name or post_id == "some id or some name") {it ...
0
votes
1answer
117 views

approve,spam,trash etc. options are not coming on comments in admin panel

I made some changes in comment-template.php, wp-comment-post.php so now I am storing the comments withot attaching with any post or page (I am setting the comment_post_id to 0). But now the problem ...
1
vote
1answer
436 views

How to fix missing function in wp-cron?

One of my sites consistently fails to publish scheduled posts. I've tried disabling plugins, using Twenty Twelve, etc. with no luck. I installed the Core Control plugin and noticed that there is no ...
2
votes
1answer
693 views

Limit access to page depending on user level

I've been asked to build a WordPress that limits access to posts with a particular custom post type based on the logged in users level. There will be a number of pre made user roles and they would ...
0
votes
1answer
219 views

Slick Social Share Buttons plug-ins with Responsive theme - number of tweets link problem

I've just installed latest version of Slick Social Share Buttons on top of Responsive theme. In the settings page in Twitter Username I provided my twitter username. The number of the times the link ...
3
votes
1answer
14k views

Receiving “This content cannot be displayed in a frame” error on login page

I am using a new domain for my WordPress directory in different server. When I click the meta links such "Login" or "register", I get this page: This content cannot be displayed in a frame To ...
1
vote
1answer
797 views

How can i list current author's categories?

My Code getting authors written post categories but just 2 ID has author lists category.. I replace $current_user->ID but it is not worked. <?php $categories = $wpdb->get_results(" ...
1
vote
1answer
685 views

How to determine the depth of a term in a custom taxonomy?

I'm building a <select> dropdown to display a list of terms for a custom hierarchical taxonomy. How do I know the depth of each term? I'd like to add some indentation for child-terms (the more ...
0
votes
2answers
131 views

Change the title of an Administration Panel

I'm working with a Lucidpress theme at the moment. A client has asked that the "Lucidpress Options" title of a metabox on the page editor screen be changed. I have searched through the Lucidpress ...
0
votes
0answers
35 views

Making epub, pdf, mobi formats available in a post? [duplicate]

Possible Duplicate: how to upload and allow downloads of .mobi and .epub formats I am considering the feasibility of converting a client site from a large number of hand-built web pages to a ...
8
votes
1answer
2k views

what happens to existing media files when I switch to year/month directory structure format?

A site has thousands of images in the uploads folder. ISP has threatened to shut it down because it is about to exceed server limits for the max number of files in one directory. I looked at the ...
2
votes
1answer
313 views

Members area with externally-managed htaccess / htpasswd authentication?

I am looking at the feasibility of converting a client's site from countless hand-built web pages to a WordPress installation. The challenge is that we have a free area and a members-only area. The ...
0
votes
1answer
2k views

How to check for empty and not a failure

I'm querying the postmeta table to see if a url has already been entered, using this statement (where $thisLink is the url I'm checking) $mypostids = $wpdb->get_results("select * from $wpdb->...
1
vote
1answer
511 views

Save an array from drop-down in custom meta box

I have successfully pulled a custom post type through into a drop-down that is in a custom meta box. However, when displaying it on the front end I would like to also provide a link to the actual post,...
0
votes
1answer
2k views

Limit one submission from each user using Contact Form 7? [closed]

I am using Contact Form 7 along with the add-on Contact Form 7 Dynamic Text Extension to pre-populate usernames and emails. I know this may be sort of a strange request but I want to be able to limit ...
1
vote
2answers
5k views

How to get gallery id inserted to a post?

Is it possible to get a specific Gallery ID inserted to a post in wordpress 3.5? I want to load gallery from post using Ajax. I use shortcode [gallery] to do it. But when I use it this way: echo ...
1
vote
1answer
412 views

Implement Hooks Using Array

I'm trying to implement some hooks into a theme, but rather than write out every hook with repetitive code I was wondering if I could use and array to declare the hooks instead. E.g. ordinarily i'd ...
0
votes
2answers
14k views

How to set global variable in functions.php

I want to be able to echo the URL of the featured image of a post and after looking some on the web I found the following which works fine when I put it in a loop in my front page template. <?php ...
0
votes
2answers
754 views

Dropdown Menu for Query_Posts

I can successfully query post results using query posts like so... <?php // The Query query_posts("gdsr_sort=rating"); // The Loop while ( have_posts() ) : the_post(); ?> <?php ...
0
votes
1answer
443 views

Multisite development environment

I have a domain-based multisite with domain mapping. Until now I've been developing locally with my hosts file setup to handle all sites through localhost a flag in my wp-config.php, indicating ...
0
votes
3answers
8k views

wp_redirect “headers already sent” after front-end submission form

I'm trying to practice with setting up a front-end post submission form. And I'm getting this error: Warning: Cannot modify header information - headers already sent by (output started at /home/...
0
votes
1answer
384 views

ted talks embed fixed, but can't control size

I used this changes to functions.php that are written in this post: TED talks shortcode not working But I can't figure out how to control the size/ratio now. The video is embedding as way taller than ...
0
votes
3answers
664 views

Show count of all comments by meta_value from a users posts

I'm trying to display the total number of comments for a users posts limited to a comment meta. I've tried using both get_comments() and WP_Comment_Query() but I get the same result of "1" for the ...
0
votes
3answers
120 views

How to hook into publish_posttype?

I'm trying to hook into WordPress publish. The code below is what I'm using, but it doesn't appear to be running. I have it in a plugin file that I deactivate/reactivate each time I make changes (...
2
votes
1answer
251 views

Custom Fields vs Separate Table

I have a client who wants to be able to upload Posts using information stored in a CSV file. I've already got this portion working. Just recently, I changed the CSV File Uploader from pure PHP to an ...
0
votes
2answers
264 views

Wordpress custom post type with folder structure in slug

I have setup a custom post type with the slug "interview" and it is working fine. I am trying to change the slug to "magazine/interview" but I keep getting 404 errors when I try to access the posts ...
4
votes
1answer
299 views

Using plural-only translation of register_post_status() in plugin

tl;dr: My plugin wants to translate strings from core or other plugins that use _n_noop(). How? This question related to this plugin and is sort of a follow up to this question. My plugin adds "{...
1
vote
1answer
259 views

Why does Wordpress stores widget options in a multidimensional array?

I have a widget with 6 different options. When I use get_option, it gives me a multidimensional array, with all my options inside the inner array, like so: $options = get_option('widget_widgetname'); ...
0
votes
1answer
171 views

How to restore all items from trash

I have accidentally deleted a WP user. By deleting it, WP removed all the media files, pages etc. I could retrieve pages and posts from trash. But I could not restore media items. Is there a way to ...
1
vote
2answers
1k views

Can I the caption shortcode to set caption to a data attribute, and with the image's alignment intact?

I want to output an image caption in this kind of format: <img class="alignleft size-medium wp-image-316" alt="Image Title" data-caption="Here lies the image caption" src="http://example.com/wp-...
1
vote
1answer
426 views

WP Super Cache Bug with Ubermenu

Im having a serious issue with WP Super cache and UberMenu. For some reason, every now and again, I will view my site, and it will have the default styling applied to ubermenu and then this unstyled ...
-1
votes
1answer
219 views

Default installation permissions for wp-config.php

Recently I've noticed that many of the wordpress installations we have on our servers where being attacked and ifected by this thing eval(base64_decode("...
1
vote
3answers
355 views

Is there any way to have Featured Text, as opposed to Featured Image?

I need to have Featured Text displayed on my category page, as well as a Featured Image. The Featured Text can not be in the Post at all (just as a Featured Image is not in the Post). Does anybody ...
0
votes
2answers
2k views

How to Create Template File for Parent Page of Custom Post Type

After creating a custom post type I made a custom template file for the post (single-customposttypename.php). So the URL structure would be: example.com/page/postname, and postname would be the post ...
3
votes
1answer
2k views

Change html structure of all img tags in Wordpress

I have a Wordpress blog and am trying to implement the foresight.js image script. In short, I need to target all post images, swap out the src, width, & height attributes with data-src, data-width,...
0
votes
1answer
254 views

force category table refresh when adding new category

i wonder if there's a relatively easy solution to this : i have added a custom field to the categories, which in turn gets displayed in the right hand table under its own column name. (essentailly it'...
1
vote
1answer
606 views

Wordpress Security - How to block alternative Wordpress access

I own a self-hosted Wordpress 3.5 blog. I'm working on its security and I'm trying to prevent non-writers from accessing anything admin-ish they shouldn't. Recently I tried Better Wordpress Security, ...
0
votes
1answer
605 views

How to get posts published on the latest date?

Is there a way of getting all posts published on the latest date? It might not necessarily be today, it might be yesterday or the day before yesterday or even a day last week.
0
votes
1answer
440 views

Paginate Gallery [closed]

I am using the default WordPress Gallery (along with the Cleaner Gallery plugin) to display some images. The one thing that the gallery doesn't seem to have is pagination. What I'd like to do is after ...
0
votes
2answers
132 views

Limit checklist by the current user

Bare with me as I explain this. I'm adding an Assistant Editor feature to my multiple author platform. In the box that appears in post-edit page, the Editors can tick which task that they have done (...
0
votes
1answer
758 views

Portfolio Slideshow Sliders Behaving Oddly When in jQuery Ui Tabs

I have a pair of Portfolio Slideshows inside of jQuery UI Tabs. One per tab with each pulling in a different page's gallery. When I switch between tabs the slideshows behave oddly. The main image is ...
-2
votes
2answers
131 views

Is this a WordPress security bug?

<?php if ( ! is_admin() ) return; echo 'You should not see this if you\'re not logged in!'; ?> If you put this in a mu-plugin, and go to your admin, e.g., example.com/wp-admin/ while you are ...
0
votes
1answer
84 views

Change places custom fields with title field in post wp-admin

Is it possible to make custom fields at the top, when writing a new post in admin panel ? Thank you.
-1
votes
1answer
1k views

Get post terms with hierarchical relationships

I'm having a hard time getting a set of selected terms in a custom taxonomy presented in a specific way. I have a hierarchical taxonomy 'places' and a post with the tagged terms: England (x) - ...
0
votes
1answer
94 views

List custom field values ​​in alphabetical order without repetition from the current category?

I have this code: global $wpdb; $query = "SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = 'product_brand' ORDER BY meta_value;...
0
votes
1answer
713 views

Blogroll/Lins Menu not visible in my backend?

well, i'm confused. I can't seem to find out why my "Links" Menu doesn't show up in my wordpress admin. I have this in my functions.php file … add_action( 'admin_menu', 'remove_links_menu' ); ...
0
votes
2answers
8k views

WooCommerce: Change default country on the cart page [closed]

I'd like to change the default country on the cart page to none, i.e. to have "Select a country…" appear as the default in the drop-down list of countries. I've looked at this WooCommerce Docs ...

15 30 50 per page