0
votes
1answer
117 views

Foliopress WYSIWYG editor does not display images

I use the Foliopress WYSIWYG editor. I inserted overview-1.png via the 'Quick Insert Image' option. This added the following mark-up: <img width="166" height="263" alt="overview 1" ...
0
votes
1answer
431 views

why doesn't my rewrite rule work? (is there something weird with wordpress htaccess?)

My ht access includes: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} ^/preview/(.*)\-[0-9]+$ RewriteRule ^/preview/(.*)\-[0-9]+$ /$1 [R=301,L] but still when I try to access ...
0
votes
2answers
620 views

Don't display a sidebar widget when on a specific page

I am trying to stop latest blog items from displaying in the blog section of my site. I have used the following code: <?php if ( is_page('blog') ) { ?> <h2>Don't display ...
0
votes
2answers
217 views

Add Post Author body class to WordPress

I'm trying to add a custom body class to WordPress which should be the author of the post which is displayed. I looked at different how to's and tried to create some code but it doesn't work: ...
1
vote
4answers
2k views

When at / ( or “home”) my menu doesn't get a current-menu-item class

I'm a wordpress noob tweaking a theme, so I'm trying to understand how it works. I've read about 10 related posts in SE but don't get it yet. My problem is as follows: header.php seems to generate ...
0
votes
2answers
236 views

Limit the amount of words displayed by the Latest News plugin, or recommend an alternative [closed]

I am using the Latest News plugin (made by James Piggot, plugin website is here) and I have inserted code that displays 5 of the latest news items in the sidebar area. It's working fine, and displays ...
4
votes
2answers
485 views

How to manage a standalone media folder?

Managing my Wordpress installation with Git is great. I get to deploy fixes via command line (with Capistrano), easy rollback plan, the Theme folder is a standalone project added as a submodule -- ...
0
votes
2answers
3k views

How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?

I have a basic admin top-level plugin I wrote which has a submenu driving a php form with a grid table populated from wp_dbase (from a custom table 'Branches' in it). My installation is a clean WP ...
0
votes
2answers
346 views

value not set in contact form 7 plugin of wordpress [closed]

i'm using contact form 7 plugin in wordpress, i have generate text field like this: [textarea your-message 25x3 "<?php print_r($_POST); ?>"] i have to set value of input name which comes ...
1
vote
1answer
179 views

Trying to create a table/list of my EventBrite course listings [closed]

I have an ever evolving list of courses on EventBrite. I would like to display them in two ways on my website: - On this page: ...
-1
votes
1answer
1k views

Using WP Ajax and jQuery to process multiple forms on the same page?

I'm using the following to make ajax calls: wp_enqueue_script( 'my-ajax-request', TAF_PLUGIN_URL . 'js/ajaxcf.js', array( 'jquery' ) ); wp_localize_script( 'my-ajax-request', 'MyAjax', array( ...
3
votes
1answer
472 views

Real time Duplicate title check

On my website there are a lot of authors and they are all writing about italian 'scene' so sometimes it happens that two of them write the same post or use same title so what I'm looking for is a way ...
-1
votes
3answers
2k views

alt attributes not showing on pages

I have downloaded a wordpress theme called livepuse, and unfortunately the alt tags are not showing on portfolio pages for my images. The website is as follows: ...
22
votes
2answers
19k views

How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

I've been combing this site and google for the answer and I've come up completely empty. Basically I want to do exactly what this post asks, but I need a hierarchical taxonomy. The answer given in ...
0
votes
1answer
27 views

How can I create a page as a draft from my plugin?

I am developing a plugin for a WordPress install so lower users can submit a new page or page revision so an Editor can approve it. I would like to do this by creating this post as a draft, then ...
2
votes
1answer
210 views

How can I customize the upload error message in Wordpress?

After following the guide for How can I prevent uploading bmp image? to remove bmp (and in my case tiff images) from being uploaded, I tested and it is working, but noticed users are now getting the ...
1
vote
4answers
950 views

Expiring Unique URLs

So this other day I was trying to get a new functionality to work for a client's website. Unique download URLs for each time a new visitor clicks on a specific button in Wordpress How would the ...
1
vote
1answer
1k views

Getting $user_id for the_author_meta outside the loop in multisite

So I am currently running a multisite install where the super admin creates all new sites. One of the templates we're using has a blog page for a loan officer. I am extending the user profile so the ...
3
votes
2answers
2k views

How to add filter with 2 args?

I want to modify $path in the following filter. It has 1 input and 2 args. function documents_template( $template = '' ) { $path = DOCUMENTS_INCLUDES_DIR . '/document/' . $template; ...
2
votes
2answers
999 views

Broken pagination

Well I'm here again with almost the same problem as I had in this post three weeks ago, but let me explain what has happened since then: I was originally using one loop to display the most recent ...
2
votes
2answers
873 views

Daily notices of failed login attempts for non-existent admin user

I run a multi-user site and for the past week or two I have been getting daily notices that someone is getting locked out due to failed login attempts for user "admin" via the Limit Login Attempts ...
4
votes
2answers
1k views

custom XMLRPC method plus authentication of user & WooCommerce order

I'm working with a custom XML-RPC method to capture some information for a plugin I am building. When activated the user has to authenticate themselves by entering there user/password given to them ...
0
votes
2answers
283 views

How can I add inline CSS for each image?

Is there a filter or hook that I can use for uploaded media? I need to use it for custom CSS properties based on the media's description. It will be like: <img src="image_url" style="width: ...
0
votes
2answers
3k views

How can I add a menu item to the admin area?

I've used almost all of the Wordpress example code but it still doesn't work. I've put the php file under wp-content/plugins/menuitem/ .The code is simple <?php add_action('admin_menu', ...
3
votes
5answers
795 views

Sub-directory blog on a sub-domain WordPress network site

I have a WordPress Network install with the individual sites installed on subdomains. example.com a.example.com b.example.com I would now like to launch a blog on each of the sites. It'd like the ...
1
vote
3answers
119 views

How to configure WordPress + plugins to support these commenting features

Is it possible (and if so, how) to configure WordPress blog to support these feature for user comments? I want to use built-in comments, not 3rd party services like Disqus. If something cannot be ...
0
votes
2answers
278 views

What code removes the admin bar for all users in WordPress 3.3?

How can I remove the admin bar in both the front and backend for all users in WordPress 3.3?
2
votes
2answers
705 views

How can I show recent posts from same taxonomy as the post currently being viewed?

I'm wondering how I can show recent posts from the same taxonomy as the post that's currently being viewed (working with custom post types and custom taxonomies). If it was simply a category of a ...
2
votes
1answer
450 views

Restrict Author to pick from media library, but not upload media

I have a multisite network where the super admins will be creating the individual sites. An important role we need to enable, for compliance reasons, is to restrict "Authors" to not be able to upload ...
3
votes
1answer
4k views

Add Rewrite Rule for custom page

Was trying to create author specific page with author specific URL and it was working fine,but when i created this URL did not taken in to account following 2 factors Author Name Conflict (similar ...
4
votes
3answers
2k views

Change The Title Of a Meta Box

I'm trying to create a function that would allow me to change the title of an established meta box (i.e, change Meta Box title 'Authors' to 'Team', etc.) I didn't want to use JS or have to unset the ...
0
votes
1answer
516 views

get_posts() method and paging is not working

Trying to use paging in one of my Wordpress site but seems it is not working.for paging i am using SEO Pager Plugin. here is my code $params = get_query_var('args'); $ppp = ...
0
votes
1answer
291 views

Add title & subtitle to shortcodes

Is there a way I can add a custom title & subtitle to this shortcode function? function spoiler( $atts, $content = null ) { return '<div class="moreinfo"> <h3 class="click drop ...
2
votes
1answer
1k views

get_terms does not return any results for my custom taxonomy?

If I go to wp-admin/edit-tags.php?taxonomy=location then I correctly see a list of terms. If I loop through: get_terms("category"); Then I correctly see several terms for the taxonomy of category. ...
0
votes
1answer
456 views

BuddyPress admin bar links are broken [closed]

I have activated BuddyPress on a blog but the link My Account on the admin bar is broken. I have configured BuddyPress to auto create pages but still the problem persists. I have been searching Google ...
0
votes
1answer
102 views

mod-rewrite rules grabs “broken permalinks”, too

This is the automatically generated htaccess file of WP using permalinks for the pattern /%year%/%postname%/ (working with http://localhost/BLOG-FOLDER/ yet): <IfModule mod_rewrite.c> ...
2
votes
1answer
828 views

How to add attachment without uploading?

When save post, I made dir in wp_uploads_dir, and copied 2 files and one folder in this dir. Now I want to do the WP_insert_attatchment process to make the 2 files as attachements. How can I do it? ...
0
votes
1answer
909 views

How to Get All Posts but the Private ones?

I am creating a frontend mosaic view where i need to show the most recent posts. So i need to show all published posts to every visitor, but keep the private ones for the logged in users. I know how ...
2
votes
3answers
946 views

Is there a hook for user activation (after they click the email confirm)?

Is there a hook for user activation (after they click the email confirm)? I am creating a plugin to automatically add them to my email software, but I want them to have to confirm their email first.
0
votes
1answer
3k views

SetCookie simply not working

I cannot get a cookie to set properly through WordPress theme. I am putting the following code on the bottom of my functions.php page for my theme. function set_cookie() { if (isset($_GET['id'])) { ...
5
votes
4answers
1k views

How to make plugin required in a wp theme without using php conditional statements when calling an individual function from that plugin?

One of my Wordpress themes requires a few third party plugins to run correctly. Most of the times I used to call functions from third party plugins using conditional statements like ...
0
votes
1answer
61 views

how to show content of latest blog post with read more link?

I want to show the latest blog post content in my side bar with a read more link. So how will I do this?
2
votes
1answer
914 views

jQuery Tree View and wp_list_pages

I'm looking to use the jQuery TreeView script on wp_list_pages to get a nice collapsable-tree effect going. The script requires that I add some classes to the list elements such as: <ul id="red" ...
0
votes
1answer
109 views

What PHP Needed to Make One Loop with Multiple Styling?

I understand that there is a way to have the loop display multiple ways on one page without using multiple loops... Or in other words something like: <?php if (have_posts()) : while (have_posts()) ...
0
votes
1answer
2k views

Changing max number of blog posts per page doesn't work

WP 3.2.1 Changing the max number of posts to show on each page via Settings->Reading isn't working. Could this reported bug be the culprit?
0
votes
1answer
633 views

Blog pagination WITHOUT using max_num_pages

WP 3.2.1 I'm in a bit of a bind. I have to create some pagination for the blog, but I believe I'm running into the bug described here, and I don't have authorization to fiddle with the server's ...
0
votes
3answers
2k views

How can I get a different image size, if all I have is the link?

For various reasons, I can't use Wordpress' built-in Thumbnail functionality. What I want to do instead is to use the first image in the post as the thumbnail. Here's what I found in the codex: Show ...
1
vote
0answers
512 views

JS.Alescurf notification [closed]

I am trying to remove this virus that cause certain browsers like Opera cannot open this website because it detects malware. This is the blog. How to solve this?
0
votes
1answer
857 views

Page with Multiple Loops Breaking Pagination

I made a customized index.php so that I have multiple loops on the same page so that the content can be displayed differently. I got this to work, however the pagination is broken. Despite several ...
1
vote
1answer
322 views

Custom loop with conditional statement to separate each terms

Let's say for example: I have a custom taxonomy called "fruit", which has 3 terms "apple", "orange", and "grape". So in order to get all the posts within all these three terms, I would : $args = ...

15 30 50 per page