All Questions

0
votes
0answers
12 views

filter wptexturize doesn't work on old posts titles

I have an add_filter('the_content', 'wpt_content');. My function wpt_content does a wptexturize($text). But It's work only on save post, so my old post has bad 'and my new post ’. I don't ...
1
vote
1answer
994 views

How to get Poster (thumbnail) Image of Video

I'm getting all videos using the function below and it's working fine. Now I want to get the videos Poster Image (Thumbnail Image) from that video. How can I get the video Image as thumbnail? I've ...
0
votes
1answer
28 views

Get author meta data with no published posts in author.php?

Unfortunately the following codes only echo the spcefic default and custom author datas if the author has at least one published post :( <?php the_author_meta('description'); ?> <?php ...
0
votes
0answers
18 views

Dynamically load content based on Title and Category

After googling for about 2 days now without finding the proper answer - and I must commit that I'm not that well educated in php programming, I hope the community may provide me with the correct ...
0
votes
1answer
607 views

Enable plugin installs without FTP with user from same group as Nginx/PHP-fpm

I just setup a VPS and I installed everything I needed and it runs well. Problem is that I want it to be able to update automatically and allow me to install plugins without ftp. This is my setup: I ...
0
votes
0answers
19 views

How to query posts by votes including posts with no votes?

Using meta_key and order_by I can easily query post by votes: 'orderby'=>'meta_value_num', 'meta_key'=>'votes' But there is one little problem... I can get posts that have at least 1 vote ...
1
vote
1answer
83 views

Run a function when a new site is created in Wordpress Multisite

I am currently developing a multi-site plug-in for WordPress. I need to run a function when a new site is created.
-2
votes
0answers
16 views

eAccelerator for Wordpress How to make it work properly [on hold]

I was looking for solutions to speed up my buddypress website because it's taking ages to load and I've randomly found this article which talks about "eAccelerator for Wordpress". It says to extract ...
1
vote
2answers
63 views

Searching hook to set cookies before <head> and avoid “headers already sent”

I have written a plugin that sets cookies, and need to avoid the "Headers already sent" PHP error by placing the code at the very top before the head section. Themes usually place wp_head just before ...
0
votes
1answer
255 views

Query in a Hierarchical Custom Post Type for Children vs Siblings

I have a custom post type with two levels of pages inside of it. the parent level we'll call parent, and child - child. The parents need to be able to pull in their children, and the children need ...
-4
votes
0answers
13 views

SEO technics for online directory website [migrated]

I am setting up a website that will host offers for supermarkets in the place i live. Now, my question is SEO related. I read everywhere that SEO title and Meta Description should be as unique as ...
0
votes
2answers
288 views

Custom Loop Pagination on WordPress

I'm trying to create a magazine style website. For this particular page (not homepage) I'd like to fetch the latest post and style it one way (style1). For all the other posts I'd like to just display ...
2
votes
1answer
78 views

Custom query - alternate posts by category

I have a custom post type called "services" with a custom taxonomy called "location". Each post is categorized as either "Location A" or "Location B". I need to query all posts from the "services" ...
0
votes
2answers
224 views

Non Wordpress Folder in a Wordpress Site

On localhost (WAMP server) I have installed wordpress in the root directory (examplesite.com). I have an application that needs to run outside of Wordpress, so I would like it in the folder ...
-2
votes
0answers
9 views

Create Woocommerce Attribute Using PHP [on hold]

I am currently writing my own product importer.. i want to create a woocommerce product attribute... using php. which we will be doing by ui using product > Attributes page in wp-admin how its ...
0
votes
0answers
14 views

Could not upload image in admin panel while making a plugin in wordpress

I am trying to make simple plugin but my problem is image which can not appear in admin panel... Here is my code: class DM_options{ public $options; public function __construct(){ ...
0
votes
1answer
290 views

How to send post notification when a Author and Contributor post?

I am using the code below on a multi user blog for sending a email notification to users when new post is published . But the problem is it is sending notification only when a Administrator and Editor ...
0
votes
0answers
7 views

Custom upload option get an error. (WordPress)

I have successfully created front-end upload option for the users. By following this tutorial. But, When I upload the images it's getting an error. I had enough to goggling now. Below is my codes, ...
0
votes
1answer
361 views

wp_editor on front end media upload jquery live error

I have set up a front end editor for a project I am working on. The editor is inside a div with display set to none. The user will click a button to get the editor div to show up. The issue I am ...
0
votes
0answers
24 views

If page is a taxonomy do X, if is a term, do Y

I am having an issue with a template for a site, I need to be able to check if the page is a taxonomy archive or is a term page My code: $term = get_term_by('slug', get_query_var('term'), ...
0
votes
0answers
19 views

Remove Adsense Ad in Forum Area [on hold]

I do realize this is more of a plugin-specific question, but I've already asked in the plugin support pages to no avail. I've also tried various php code solutions I've found online but none of it ...
1
vote
1answer
371 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
0
votes
1answer
311 views

Resolving Javascript errors likely related to Gantry framework

I'm trying to resolve some Javascript errors on a site I'm working on (built using the Gantry framework), as I have a sneaking suspicion they're keeping some plugins from working properly. For ...
0
votes
0answers
2 views

Exclude category from vertical scroll recent comments widget

I am trying to hack the following line of code inside this plugin, so that I can exclude comments from a specific category: $vsrc_data = $wpdb->get_results("SELECT * from $wpdb->comments ...
0
votes
1answer
13 views

create a static folder independent with Wordpress

I have a website: www.a.com I want to add a folder of code samples like this: www.a.com/code//index.html So that at the end of each post I can refer the user to an example. How can I create a static ...
1
vote
5answers
2k views

WP_Query returns no results

I'm using wp_query to create a custom query that retrieves search results but it is returning 0 results. Here is the code: $query = 's=the&posts_per_page=5&paged=1'; $custom_query = new ...
0
votes
1answer
16 views

Understanding Permalinks

I am trying to understand how wordpress works. I have found this line of code in my theme: <?php echo get_permalink(get_option('Theme_search_page_id')) ?> If I get the that option from mysql ...
0
votes
0answers
12 views

Login page send credential via mail?

I'm working on a small script, and I need to send credential from WordPress login page via email. I suck in php coding, maybe someone could help ?
0
votes
1answer
13 views

Query pages by child term

I cannot seem to get this to work, I have tried everything I can think of and spent enough time googling, to get me to seek help elsewhere. I need to query pages in a loop, using the same taxonomy as ...
6
votes
2answers
7k views

Get all image from single page using this query

I'm having some trouble with this sample widget code. I want to get all images (Minus the post thumbnail) from a page called "Gallery" but for some reason this is pulling all uploaded images from the ...
0
votes
2answers
697 views

Wordpress Defined Memory Limit

Running a dedicated managed server with 2 GIGS of RAM. How much memory can I define in wp-config.php Currently I have define('WP_MEMORY_LIMIT', '256M'); I suspect a plugin that resizes images ...
0
votes
1answer
16 views

Howto: Use Custom Post Types as Submenu Items in Admin

In a plugin, i've created 3 Custom Post Types, for example: Dogs Cats Goldfish I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu ...
0
votes
1answer
253 views

Converting multiple loops into one single loop with pagination

I am using Isotope jquery plugin to filter/sort posts in Wordpress but to correctly filter the posts into the right order I have needed to output each category one after the other. To do this I've ...
0
votes
1answer
703 views

posts_per_page is not working

I have a query to display custom post type categories' posts, but I want to limit the posts_per_page to 8, so I am using the code below. Please tell me, if I'm doing something wrong. <?php $args ...
0
votes
1answer
253 views

Strange characters - despite everything being UTF-8

Not sure why this thread was closed, but this is the same issue inflicting many people. All my WP config settings are in order: //define('DB_CHARSET', 'utf8'); //define('DB_CHARSET', ...
0
votes
1answer
17 views

Upgrading to 4.1 fixed parse error

In the past few days I've had reports that users weren't able to access my site. They were just getting a blank page. I checked the error_log and found this. [22-Nov-2014 22:07:41 UTC] PHP Parse ...
1
vote
3answers
259 views

Problem excluding category from get_next_post

I have a custom post type called "exhibitions" that uses the native "category" taxonomy. I have three categories: Current, Past, and Featured. Posts get marked either Current or Past and some are also ...
2
votes
3answers
4k views

Troubleshooting a “You do not have sufficient permissions to access this page” error

I have a multisite installation running WP 3.5. My main site and a few other blogs on the network work fine. However, if I register a new user and site, that user gets the "You do not have sufficient ...
0
votes
1answer
19 views

get_template_part returns NULL

I am making a one page site. I have a custom loop that is hooked to the navigation so that only the posts, pages that are in the navigation will show up in the loop. I have found that using ...
0
votes
1answer
600 views

Registration key

I want to get my single wordpress installation a closed community. Just people who know the registration key should be able to sign up. I already added some more fields to the registration form but I ...
0
votes
1answer
14 views

Custom taxonomy (categories) on custom post type return no results

Hi everybody and thanks in advance for helping. I am experiencing a problem with the categories I have created for my custom post type: when I click on the URL of the category (every category) I get ...
0
votes
1answer
291 views

Change permalinks for custom post type based on taxonomy term

I have a custom post type 'profile'. Each profile can be one and only one of either student, staff or alumni, which is set through the 'profile_types' custom taxonomy. This gives me permalinks of: ...
0
votes
1answer
18 views

How to migrate the menu from the site on my own theme in Wordpress?

I'm a novice at WordPress topic and now I'm trying to figure out how to migrate the part of the design (I've decided to begin with navigation bar menu on the top) on this site to my own site based on ...
0
votes
2answers
372 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
1
vote
1answer
24 views

Wordpress: How to embed a widget on a separate website?

A client requested that we make a copy of their WordPress widgets onto a separate, non-WP site. Is there an easy way to "plug in" the widget? I imagine I would have to somehow source to something ...
16
votes
2answers
8k views

Set Default Admin Screen options & Metabox Order

I am desperately looking for some way (any way) to set default "screen options" and metabox order through the functions.php file. does anyone have any help they can provide here?
0
votes
1answer
15 views

Redirect after permalink changes

In old site I had the permalinks like: www.example.com/q-html.html When I change my old site to WordPress 4.0, I set the like: /%postname%/ When the URLs come up in a Google search, the user is ...
2
votes
1answer
633 views

Query by meta_key and order by meta_value_num return orderby date

I'm trying to use the orderby and custom WP_Query features of wordpress. It works nicely to select item by their meta and to order by date. Unfortunately, it seems that I could not get the post ...
1
vote
0answers
11 views

WP_Widget instance value to wp_head

I have some problem with dynamic variable on widgets. class instaslidewidget extends WP_Widget { public function __construct() { parent::__construct( "text_widget", ...
1
vote
2answers
36 views

Upload a json file in php

I'm trying to upload a json file through PHP. This is the code that i have yet. if( isset( $_POST['upload'] )) { $target = "/"; $target = $target . basename( $_FILES['upload']['name']) ; ...

15 30 50 per page