0
votes
0answers
3 views

How do i append custom query results with default search query

I want to append custom table query results with default search query results. So which are the hooks can i use it.
0
votes
0answers
8 views

current_user_can('manage_options') causes white screen of death?

The condition if(current_user_can('manage_options')) causes white screen of death, and for obvious reason I cannot track the error, and debugging didn't yield anything. I am pretty sure the condition ...
0
votes
0answers
7 views

Getting user meta value in default user list in wp-admin (MU)

is there any way I can get value from a specified user meta in the default user list in WPMU? I am talking about the wp-admin/network/users.php list. It lists Username, Name, E-mail, Registration date ...
0
votes
0answers
7 views

Procedural Question on Plugin Installation

I am running WP multisite with about 80 sites. I can see from my server's directory structure the presence of only one directory for ../wp-content/plugins/* Each of the plugins I have installed is ...
1
vote
0answers
4 views

automatic plugin install availability: server configuration

This link shows how it may be possible that WordPress may not be able to download and install a plugin via its web interface (known as automatic plugin install). However it may be still be able to ...
0
votes
0answers
12 views

jQuery stopped working [on hold]

For some reason, jQuery have completely stopped working in my theme. All jQuery related items - lightbox, add to basket, etc - suddenly reloads the whole page. The problem seems to disappear if I ...
0
votes
1answer
9 views

How to save information related to post in database?

I created a post-to-email plugin and I need to save something in the database when the post is sent so I don't allow users to send it twice. How do I save this in the database? And how can I retrieve ...
0
votes
1answer
13 views

How to avoid conflicts with db.php / $wpdb and other plugins that decide to use them?

Our plugin (VersionPress) needs to track database changes so that it can version-control them. We currently do this by creating db.php and overriding the $wpdb instance in it but it has an issue that ...
0
votes
0answers
8 views

Sort Posts By Custom Field Date

I know it's not a new question, but everything I found fails to sort my posts. I simply want to sort 30 posts that have a custom field, let's say "album_date_sort", by the date entered in its value. ...
-1
votes
0answers
3 views

how to get attachments show with post title

look at this site http://www.jvpnews.com/srilanka/82163.html i need to dolike this look at down the image i marked with circle of attachements image/video with post title i m using wordpress how ...
0
votes
1answer
11 views

How do i append UNION SQL Query with default search query

Example: (SELECT ID, post_status, post_title, post_excerpt, post_content FROM wp_posts WHERE ((`post_title` LIKE '%2020%') OR (`post_excerpt` LIKE '%2020%') OR (`post_content` LIKE '%2020%')) AND ...
0
votes
0answers
5 views

I'm using mediaelement for audio player and playlist. What to call in ajax callback for reload players?

The object is enough clear I think. I'm using mediaelement for audio player and playlist. What to call in ajax callback for reload players? Because after call in ajax of a page (I'm using ...
0
votes
0answers
11 views

Issue On WordPress multisite its create new table for each user

I am using WordPress for multisite all configuration are right, but it's create new table for each user like (wp_1_options, wp_2_options, wp_3_options etc for each table) it's a very big issue for me. ...
0
votes
1answer
15 views

Displaying menu based on login status

I'm trying to show one menu based on whether or not the user is logged in. It's straight forward enough but when I change to my code I have no styles or icons like the original - see code below ...
0
votes
0answers
11 views

Blog page stripping posts and images

This is how I designed the post to look. Why when viewing it in my blog page does it strip out hyperlinks and the image and formatting? I've already tried disabling plugins.
0
votes
1answer
9 views

Custom post_type 404 error

I created my custom post_type for "trip": $rewrite = array( 'slug' => 'vylet', 'with_front' => true, 'pages' => true, 'feeds' ...
0
votes
1answer
10 views

Two textareas showing up in comments.php

I have the following code to display comments, but there are two text areas showing up, not just one. Here is my code <?php $comment_args = array( 'title_reply'=>'Got Something To Say:', ...
-1
votes
0answers
10 views

Form maker plugin

I need to a form plugin with below Features: 1- login for display fields 2- save data in db 3- if form writer wants to show your form information at the next time (every time); its able to display ...
0
votes
2answers
15 views

Image and shortcode not showing in excerpt

I've paid to someone to create a theme for me. Everything works fine, expect the excerpt on category posts. It only shows an excerpt of the post ( not image ) and when I add a shortcode in the ...
-1
votes
0answers
8 views

Custom registraion system without plugins

I am trying to make a custom registration system in my without plugins. I have used a lot of plugins like wp-members, profile builder, pie register, registration plus redux and so on, but none suits ...
0
votes
0answers
16 views

How to show 4 previous posts from current article category in Wordpress?

How to show the 4 previous articles on Single Post (single.php), only from current article category? Also if no previous article found, loop from the next articles. Please no plugins... I need to ...
0
votes
1answer
9 views

Show related posts based of current ACF field name in a single page post (a loop within loop)

I have a single page where I display my current post. Within the post loop, I wanna display another loop inside that shows 3 other related posts by title that share the same text as the current post ...
0
votes
1answer
11 views

Custom meta box not saving values of radio buttons in Wordpress

I dont know where i am going wrong.I want to save the values of my radio buttons in custom meta box.Here is my code. <?php if (!function_exists('custom_meta_box')) { function ...
0
votes
0answers
11 views

How to disable auto friend requests when register buddypress?

When a new member register in buddypress, He found some request on friend->request tab. How do members get such request without others sending it? Can I disable this? Please help.
0
votes
0answers
11 views

Deregister CSS style file from WP footer

When user is logged in WP add in its footer this CSS: <link rel='stylesheet' id='open-sans-css' href='//fonts.googleapis.com/css?family=Open+Sans....' type='text/css' media='all' /> That ...
0
votes
0answers
11 views

Discount From Woocommerce cart

I am new for both wordpress and coding.I am integerating Referrals with woocommerce Subscriptions.Based on the no.of referrals I am discounting the total from the cart.I have written the following ...
-1
votes
0answers
7 views

I am editing a plugin to sort list items alphabetically but can't seem to get it working. What am I doing wrong?

I know modifying a plugin is a big no-no. But I'm sure most of you have done a few in a few cases. This happens to be the case. So I bought a plugin for a client to use on their website but turns out ...
0
votes
1answer
16 views

Post data in separate divs with incrementing class using WP_Query

I'm trying to achieve this result (which is the static HTML) and this is what I've gotten so far. Below is the approach I've taken: Created a CPT for 'locations' Created a custom taxonomy 'region' ...
1
vote
0answers
10 views

Change Media Library thumbnails for non-image files to include the post title instead of the filename?

We are migrating an outdated custom CMS to Wordpress and all of the files have a corresponding title which is great, but Wordpress chose to show the filename, by default, in the grid view, which ...
0
votes
0answers
9 views

How to change/rewrite the lost password url?

I used iThemes Security (formerly Better WP Security) hide back-end functionality to change the login url to /signin however clicking the lost password link /wp-login.php?action=lostpassword now ...
0
votes
0answers
17 views

Combine enqueue js without effecting dependencies

I want to combine little javascript files while keeping other script's dependencies for them. Is there any way? Details: New version of BuddyPress enqueue 6-7 little javascripts: // Legacy ...
0
votes
1answer
14 views

Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC

Under the active theme folder, I have a search-autocomplete.php file which uses various WP queries to create smart JSON results delivered via AJAX to a jQuery UI Autocomplete input field. It's not a ...
0
votes
0answers
8 views

Plugin to limit a list of tags to one category

I may be posting this query in the wrong spot, I'm prepared to be shouted at :} Looking for a plugin / widget that would present users with a drop-down list of tags BUT only for posts that have the ...
0
votes
1answer
13 views

How to order a list of taxonomy terms alphabetically?

I have the following code to list taxonomy terms in a drop down list. It works great, except the list in the drop down isn't in alphabetical order. How do I modify the code to list them ...
0
votes
0answers
8 views

How does the system know where to get text-string (in different language) from?

I have this code in functions.php in a theme that is used for creating header-titles in different tables $content_prodsection_headers = array(); $content_prodsection_headers['title'] = 'Namn'; ...
1
vote
0answers
8 views

using plugin to add menu item to external page [on hold]

I have a wordpress plugin that is working well so far. The last step for me is to have it create a menu item on the main navigation menu to an external page when you activate the plugin. Not sure how ...
0
votes
2answers
10 views

Update meta_key value for a page

I have inherited a WP site where some home page slides are pulled using <?php $po = get_posts( array('post_type' => 'page', 'meta_key' => 'Home Slide', 'order' => 'ASC', 'orderby' ...
0
votes
0answers
6 views

CF7 skip mail and redirect form to step-2? [on hold]

i am using contact form 7 to save data in a custom db table. But i can't redirect the form to a next step if (($wpcf7_data->id() == 15)) {//STEP 1 $wpcf7_data->skip_mail = true; ...
0
votes
0answers
17 views

How to access a local site without knowing the log-in credentials?

I have an old WP site on my computer in MAMP. I've can't remember the user name or password when using wp-admin Any email I try says not recognized. Is there any way I can get login into the site, ...
0
votes
1answer
16 views

How do I 'rebuild' the WordPress Media library after transfer to new host?

I recently inherited a large site from a developer that vanished. The site has more than 6,000 images. In the pages most of the images are missing, however, they are referenced in the media library ...
0
votes
0answers
15 views

Unit Test ignores stubbed method second time around in a dataProvider

I am writing a sample unit test that checks a title of a post for a token and if it exists add the post to a category. https://gist.github.com/matstars/bebedbacedd7a85d8dc7 In my test for this I am ...
2
votes
0answers
23 views

Can't preview drafts after upgrade to 4.0!

I recently updated to wordpress 4.0. However, when I try to preview my drafts, I receive an error saying that I do not have the permission to do so. I've cleared my cache and cookies and restarted my ...
0
votes
1answer
11 views

Plugin settings are saving but the fields

I'm following @Otto's tutorial on Settings API. I managed to save the plugin settings into the options table, but by any means can't save any fields. <?php /** * Add Settings SubMenu * Thanks ...
0
votes
0answers
10 views

Custom meta boxes adding prefix to first category but not others

I've created a custom post type and added some custom meta boxes using this great resource: https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress The problem, I've found, is that ...
0
votes
1answer
18 views

ordering and optimizing functions

Ive been hard at work trying to build some functions to display products on my site. The prices for these products are calculated based on many variables. I think the first set of functions work, ...
1
vote
0answers
8 views

Passing jQuery into the Wordpress media uploader

In a Wordpress plugin that I am working on, I am using the built-in Wordpress media uploader function ( wp.media ) to add photos. I am using the selection option to pre-select images in the media ...
0
votes
0answers
4 views

Extract custom image URL from category taxonomy

I've attached an image field to the category taxonomy with Advanced Custom Fields which I want to set dynamically as a full width background. I've done this on the category page without a problem but ...
0
votes
0answers
14 views

WP Meta Box Not Saving

I've been trying to get this custom meta box to save but it is not working. I've browsed around but still haven't found a solution that works. function add_link_box() { add_meta_box( ...
0
votes
0answers
11 views

List all posts by year with pagination

Right now I'm using the following code to display all posts by year: index.php <?php foreach(posts_by_year() as $year => $posts) : ?> <h2><?php echo $year; ?></h2> ...
0
votes
0answers
6 views

Default metadata for Custom Taxonomy when using Add New Item on Post Edit

I have created a custom post type, that has a hierarchical custom taxonomy. This taxonomy has extra custom fields tied to it that save to a custom table in the DB. These fields have default values set ...

15 30 50 per page