# All Questions

137 views

### Prevent “main” WPMU site_url() being returned in functions

I've noticed that in a WordPress MU install with domain mapping enabled, some functions return URIs that don't use the current WPMU site's primary domain name which possibly means they are "WPMU ...
154 views

### Is there a way to use latex \cite{reference} in wordpress?

I am using QuickLatex plugin and it works great. But when I tried to cite some references using \cite{paper1}, it did not seem work. [latexpage] Here is a citation \cite{example}. \begin{...
174 views

### Theme Customization API and child themes

I've recently developed a parent theme that makes heavy use of the Theme Customization API. Is there an easy way to port these settings when a user activates one of my child themes? Currently, the ...
695 views

I hope you can help me. So I'm using /%postname%/ as permalink structure, and my htaccess looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /develop/...
387 views

### comment_post_ID 0 (cannot remove from dashboard)

Ran across something a bit odd that I haven't seen before. A client has a pretty active blog and uses Akismet (paid) to protect against spam. At least once a day, they're reporting a spam comment that ...
265 views

### How to create a custom url for a category

I took over a site that displays the category in the URL three different ways. For some categories it shows "?category_name=blah". (Not ideal, but I can live with it) For newly created categories ...
1k views

### Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content

I've never posted here, but I'm tired of slapping code together. That said, I would be most appreciative if someone could help me with this. I need a page template that: outputs the PARENT PAGEs, ...
166 views

I'm getting a 500 error when trying to access the full version of any image. As soon as it's uploaded to the server, it becomes 'unavailable', and each file cannot be accessed/deleted/anything - like ...
1k views

### How to bind data-src attribute for the image in the post using jquery?

I'm trying to use foresight.js for responsive image in the wordpress blog. For that I have to add the data-src attribute in the place of src in the <img> tag. Or I have to get the url from the ...
142 views

137 views

### Wordpress Network site edit missing user list?

[domain]/wp-admin/network/site-users.php?id=2 shows no users listed but there are definitely users in the blog. Where/How can I fix this?
383 views

I use the following code to count user posts by specific post type: function count_user_posts_by_type( $userid,$post_type ) { global $wpdb;$where = get_posts_by_author_sql( $post_type, TRUE,... 0answers 2k views ### Automatically Facebook Debug Posts on Publish I am looking to do something similar to this plugin which adds an "FB-Debugger" link on the admin of pages/posts: http://xlino.com/projects/facebook-debug-link-wordpress-plugin/ However, I'd like to ... 0answers 205 views ### Can I use core's “or Link to Existing Content” feature in my plugin? When adding a link in the TinyMCE editor, you get a nice search with ajax function that searches your existing content and lets you select from it. Is it possible/reasonable to re-use this in a ... 0answers 591 views ### wp_nav_menu custom walker - child items I have written a custom walker to integrate a jquery dropdown nav script into my wp template. I need to add .dropdown-link to each of my parent menu items and .dropdown-wrapper to the unordered list ... 0answers 1k views ### Settings API - adding setting fields dynamically? Is there a way of adding settings fields dynamically? I have my own Settings API options generator just like in Chip Bennet's Oenology Theme, everything works perfect but I can't find a way to create ... 0answers 221 views ### Multisite Login Issues I'm trying to set up Wordpress Multisite properly and I've got all the sites up, but only the primary domain's wp-admin can be accessed. I've seen various fixes for it but they only cause bigger ... 0answers 347 views ### Post in Multiple Categories to stay in current category (permalink, next previous post link) I guess this has been mentioned before, but after 2 days of browsing i haven't find a complete solution. Maybe someone has come across this problem before? I'm building a designer portfolio where ... 0answers 296 views ### How to display term description in empty terms archive? I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least ... 0answers 102 views ### Singular name Plugin localization I'm trying to localize the singular name of a custom post type. ... 'singular_name' => __('key', 'plugindomain') ... I created a .po and compiled it as .mo. I also loaded the translation using ... 0answers 279 views ### How to let a user choose an authors and save it to the database? I have a multi-author Wordpress site which reads different rss feeds and posts them to my page. I was wondering if it is possible to make a code that would provide an opportunity to registered user ... 0answers 107 views ### Oauth user Authorisation I work with Oauth 1. I want when the user enters the admin page of my plugin, it is redirected to the site should perform authorization and come back on my page but it does not work ... 0answers 147 views ### Additional Option on Custom Header admin I would like to extend the Custom Header class to include an animation feature for the header graphics. Essentially, I'd like to add another possible value for the radio button for randomization. The ... 0answers 77 views ### How to hide “Trackback” on paginated comments My Setup: On my Single's page I have used this comments_template('', true); to separate Trackback's & regular comments. The Heading "Trackbacks for this post" shows up only if a post has ... 0answers 95 views ### Get page content by category or tag I'm trying to sort of emulate the Views behaviour in Drupal with Wordpress, but doing it in theme templates. Now, I have pages that are assembled by using wp_query in the template to get posts ... 0answers 127 views ### Featured image upload finished hook I'm looking for a way to hook into the process of uploading a featured image. Ideally I would want to be able to do some stuff right when the upload has finished, before the thumbnails are generated. ... 0answers 561 views ### WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www) I have an issue I've been facing for a bit now. Moved away from it, but now I'm back and just have no idea after trying to find a solution online. It seems individuals have faced similar issues, but ... 0answers 512 views ### How to reload a select box of posts dynamically? I'm using custom meta boxes for a project. I have created a custom taxonomy (select box) and I have another select box populated with Posts. I need to only load the posts based on the selection of the ... 0answers 755 views ### I want to load post content by categories using Ajax I have question. I would like to load post content, custom post, depends on category. So first of all I would like to have drop down menu which will list all my categories then once user will select ... 0answers 31 views ### + Character in permalink I'm currently working on a new website that I need to migrate from an old CMS to WordPress. The old system had some URL values with id's in it: http://www.domain.ltd/page+1234. When i place this url ... 0answers 20 views ### WordPress URL/Folder ReWrite using Htaccess I am trying to mask certain folder in a WordPress installation using the Htaccess file. I am aware that there are plugins available to do exactly what I want but, I do not want to add even more ... 0answers 18 views ### Custom values are not translated I'm trying to translate my plugin. Inside plugin's root folder I have 'inc' folder, where located registration.php file. This file has a code, which adds custom fields to comment form. (I use right ... 0answers 53 views ### How to retain HTML5 Attributes on Markup I have a page with certain html markup and element attributes as shown in the snippit below: <ul class="accordion" data-accordion=""> When I edit the page as a user with the WP Administrator ... 0answers 22 views ### Change Theme from Plugin based on query_vars I'm working from about 4 months on developing a Plugin. This plugin make in a page an entire app, using the powerful of Wordpress. So, I've decided to create a serires of rewrite rules using command ... 0answers 12 views ### How to have english digits in some posts with an rtl Wordpress theme I have an RTL theme for Wordpress. When I want to have a post in which some digits should intentionally be in English, the theme tends to convert all the digits from English to Persian. Adding lang="... 0answers 27 views ### How to create thumbnail of different files? I am storing my uploads in a separate folder and using separate table to save the location in database. I have gone through WP_Image_Editor , wp_image_editor_gd and wp_image_editor_imagick . I also ... 0answers 27 views ### W3 Total Cache: use cache for request with ignorable query string Currently W3 Total Cache use cached page only if query string is empty, the rule is: RewriteCond %{QUERY_STRING} ="" in this code (from .htaccess): # BEGIN W3TC Page Cache core <IfModule ... 0answers 26 views ### Too many MySQL connections on WordPress I installed Wordpress on my Ubuntu server. I only have 3 blog posts but it reaches max_connection within an hour. So whenever a user visits my blog it shows a database establish error. My log file has ... 0answers 23 views ### Remove and restore one shortcode I would temporarily remove a shortcode, make something and restore it... it's possible? // override default wordpress "the_content" hook remove_filter('the_content', 'do_shortcode', 11); add_filter('... 0answers 35 views ### my function doesn't return my post from today I'm using gravity form to create some custom post type - as events. Everything is working great, There is some date field to setup the event from x to y date. ALl of this working great. However, I ... 0answers 22 views ### Wordpress Template not affecting the working, keeps defaulting to the index.php template I thought this would be incredibly simple, but it has not. I have an index.php file that has my default template for my site. I then made a new file called magazine.php for a template file so that I ... 0answers 27 views ### No checkbox in wordpress posts list table for CPT I have added a Custom Post Type as follows add_action( 'init', 'codex_book_init' ); function codex_book_init() {$args = array( 'description' => __( 'Description.', 'your-plugin-...
18 views

Problem: clicking on (WP site that I developed) webejeeping.com/vehicles/ causes the generated php file to be downloaded instead of being rendered in the browser. MIME Type returns as "application/...
30 views

### publish_post action hook doesn't give post_meta_data

I write the following function to get the post data on publish post but i see that post_meta is not available, its always empty. How do i retrieve the post meta data of a post on publish_post hook? ...