All Questions

0
votes
1answer
13 views

Display title of child pages in shortcode

I'm having a hard time figuring out how to display the title of the childpages as the id of a div. Assuming that 'news' & 'othernews' are siblings of the parent page home (39) I want something ...
-1
votes
0answers
6 views

Kento Post Views counter doesn`t work [on hold]

Kento Post Views counter for unique view doesn`t work well. I have Kento Post Views counter plugin in wordpress, but not working well. Sometime it appears double stats, the stats aren`t appearing ...
0
votes
1answer
13 views

php wp_insert data on front using a form

I'm using a form on my website to allow user to create posts on my wordpress admin. It works fine, but I have an issue, I don't get the tags meta inside my admin. here is my php code : <?php ...
-1
votes
0answers
3 views

Remove meta boxes registered by nextgen gallery plugin

i am using NextGen Gallery. Works fine, but i need custom edit this plugin. i need this: delete widgets on nextgen gallery dashboards. i tried this code, but it didn't work:-/ add_action( ...
0
votes
1answer
38 views

Comparisson between date() and a date from wp_postmeta

I am using the calendar plugin: "The Events Calendar", and is trying to get the events that are done. I can't see what it is that I'm doing wrong, but I'm pretty sure that my meta_query is wrong, ...
-4
votes
0answers
26 views

Display 5 most viewed post of the last week

I'd like to find a way to display the 5 more viewed posts of the last seven days, it should include just the title and the thumbnail pictures. I have a tab widget where I can add the necessary code ...
0
votes
1answer
12 views

Sort by multiple options in custom field

With use of the Advanced Custom Fields plugin I created a select dropdown which contains 6 membership types. All of my 'listings' using this custom field are assigned one of the 6. I'd like to ...
0
votes
1answer
28 views

Template Include crashing browser

I am creating a plugin which requires use of custom templates so using the following code to use the templates: add_filter('template_include', 'hhavideo_set_template'); function ...
0
votes
1answer
32 views

Custom meta box with jQuery.sortable custom post type list

What I'm trying to do is have a custom post type ordered differently on different pages. I've searched around for quite a while and can't seem to find anything to help. I have a post type named staff ...
0
votes
0answers
8 views

How to add a new menu item in “Twenty fourteen” theme?

I've created two menus inside of my theme's functions.php file: register_nav_menus( array( 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 'secondary' => __( 'Secondary menu in ...
0
votes
0answers
16 views

restrict_manage_posts for users?

restrict_manage_posts is great for allowing me to filter posts by taxonomy on the admin page. Is there any way of using a similar function for the users admin page - so I can filter by user meta data ...
0
votes
0answers
11 views

Native Category taxonomy used with multiple post types show wrong numbers of posts attached to it

I have two custom post types i.e. Deals and Articles and both have native category attached to them. I then created multiple Deals and attached different categories to it. It all worked fine and ...
0
votes
0answers
13 views

Cannot access install on subdirectory

I have just been asked to create a new site for someone, and to save down time on the old site I was hoping to build the new site (using wordpress) in a subdirectory. The main site is a wordpress ...
1
vote
0answers
9 views

How do I go straight to “Edit More Details” when clicking on an item in the media library?

By default, when I click on an item in the media library, it takes me to the Attachment Details page, e.g. .../wp-admin/upload.php?item=65. What would I need to edit to make it go straight to the ...
-2
votes
0answers
9 views

Cannot install plugin on bitnami amazon ec2 instance Failed to connect to FTP Server [on hold]

I've activated an Amazon EC2 micro instance with the "Wordpress Bitnami AMI". I've got a password and username. I've opened FTP ports on "security groups" of amazon. I'm getting below error: ...
-1
votes
0answers
10 views

breadcrumb do not show the child pages but home page and post name [on hold]

function the_breadcrumb() { global $post; if (!is_home()) { echo ""; if(is_single()): echo 'Main'; else: echo "Home"; endif; echo " / "; if ( ...
1
vote
1answer
43 views

The problem with Wordpress Importer

I've tried many times to upload theme-unit-test-data.xml from http://codex.wordpress.org/Theme_Unit_Test But when I'm trying to upload this file in WordPress Importer it gives me an error saying: ...
0
votes
0answers
13 views

Building a filterable archive, show all results when search is empty [on hold]

I'm trying to build a filterable archives page for example user could filter to show only content from a specific category, to do this I'm editing the search.php template. Problem is when I do an ...
1
vote
1answer
21 views

Custom Tag Cloud widget missing tags

I was trying to create a custom tag cloud widget that will look like this: Also, when I tried including some new tags in my post then it's showing something like this (just one tag): This is my ...
0
votes
2answers
33 views

Echo title with permalink

I was creating a wordpress sidebar widget that will display recent posts. For, this i've created a custom widget(popular_posts_widget.php) and included in my theme functions.php. I was trying to ...
0
votes
0answers
8 views

blog directory created under the root

Scenario: Wordpress is installed in the root; I created 2 pages Home and Blog; I set Home page as static page for root (http://www.mysite.com/) and Blog page for static page for blog article ...
0
votes
0answers
19 views

how to add a html page to wordpress using custom page template?

I have created a web page using twitter bootstrap and some javascript functions. Now I have a requirement to add this to WordPress site using custom page templates. But the problem is I don't have ...
0
votes
0answers
5 views

Options.php metabox options submit hook

Good day ! Please advice what hook to use, when user click submit button at options.php page in metabox with settings_fields ? Thanks ! //Vladimir
0
votes
1answer
18 views

Why isn't the login page rate limited by default?

Brute force attacks seem to the be most common vulnerability on WP installs and rate limiting ought to be relatively easy to bake into WP itself as part of the official, default software (without the ...
0
votes
0answers
11 views

Wordpress install enters an infinite loop

I am really struggling with this one - hopefully someone here can help... I am installing a brand new, fresh version of Wordpress v4.0 (A task I've performed easily 100+ times before without ...
0
votes
1answer
23 views

How do I show my <p> containing my custom field ONLY if there is a set value on that custom field?

I am using the Custom Fields Plugin and have 2 custom fields assigned to my "products" custom post type. Field 1. Price Field 2 Discount Price So this is my code: <div class="wrapper"> ...
0
votes
0answers
31 views

How to change the widget's instance settings depending on sidebar

I want my widget to have one default option value in sidebar-1 and another in sidebar-2. How can I do it? I know wp saves widget right after drag and drop it into different sidebar in widget admin ...
1
vote
3answers
23 views

How to use wp_rel_nofollow to add nofollow to external links only?

I want to add nofollow attribute to only external links in the content of the post. Internal links should stay follow. So, can I use wp_rel_nofollow() to make only external links nofollow? Or do I ...
0
votes
0answers
10 views

Enqueue script with API_KEY as data attribute [duplicate]

I'm currently trying to create a plugin that connect with an online service who required API_KEY to be passed in the script tag, and I'm searching a way to do it the "Wordpress" way, is it possible ? ...
1
vote
0answers
14 views

Add more structure tag to permalink?

I'm new in wordpress .I wondering is there anyway to get the category id in permalink ? My current permalink is : http:///example.com/%category%/%post_id%-%postname%.html ...
0
votes
1answer
21 views

How to assign a custom post title to be the post ID?

Is it possible to assign a custom post title name to the post ID upon submitting an ACF form? I'm trying to do this because I don't use the custom post title, instead I just want it to be the post ID. ...
0
votes
0answers
24 views

WP_Query by a category id and a custom post_type

I need to query all posts that belong to a given category (default, not custom) and a custom post type. As simple as that. The fact that it doesn't work, to me, is ridiculous. Unless I'm missing ...
-1
votes
0answers
17 views

Source of the user 1001001 hack? [on hold]

Was wondering if anyone has any experience of the recent hack of huge numbers of wordpress sites in which code was injected into every PHP file and a user number 1001001 was created? Specifically, ...
0
votes
2answers
16 views

Meta query with a sub query group possible?

I have searched all through the forums and WP docs, but can't find an answer to whether or not WP Meta Query permits a sub meta query. My problem is this: I have a number of types of promos (custom ...
0
votes
0answers
18 views

PHP filters on a listing page [on hold]

I am asking in the hope someone cal provide a solution to below as I have no knowledge of php and have searched for hours in the hope I can find a solution to below I am creating a website - ...
0
votes
1answer
22 views

Private file system for attachments

Is there a way to make an attachment private? This also includes moving the files to a separate folder for private attachments, even if it's a sub-folder of uploads, to restrict anonymous access ...
-1
votes
0answers
14 views

Wordpress plugin supporting upvote/downvote of comments along with star ratings and average star rating [on hold]

I am looking for a plugin that supports the following:- 1) User could leave star rating with or without a comment and average user rating is shown on the page 2) User comment with star rating could be ...
0
votes
0answers
17 views

Getting two different answers when using get_the_terms

When setting a variable $cats = get_the_terms( $current_page_id, 'category' ); Outputting $cats to the console gives me two slightly different objects depending on the post. (Usually after a while ...
-1
votes
2answers
51 views

Convert all youtube link to embed

I have this function to convert any YouTube URL in any post or page to embed :- function embed_youtube_an($post_content) { global $posts; ...
0
votes
0answers
9 views

RSS FEED taking over Slug

I created a custom rss feed called "feed-news" using a template called feed-news.php I followed this tutorial http://gregrickaby.com/custom-rss-template-wordpress/ For some reason that RSS feed has ...
-2
votes
0answers
24 views

Gap between Header and Top of page in wordpress

For obvious reasons I have disabled the admin bar in my WordPress installation for anyone logged in but not able to post. However when logged in under an account type that has the admin bar disabled, ...
0
votes
1answer
23 views

Minimize Performance Issues of MultiSite Large Number of Tables Created

I am deploying WordPress MultiSite and if I get a decent amount of users, I will have thousands of database tables to support all of these sites. I like the idea of consolidating all of these tables ...
0
votes
0answers
18 views

pre_get_posts filter meta_query without conflicting existing meta_query

I have a meta_key on all posts that is designed to check the current user role and only return the post if the user has an acceptable user role. The problem I am running into is that my meta_query ...
0
votes
1answer
9 views

WP_Query and polylang issue

In the theme I develop, I have a template showing 5 posts using the standard loop: <?php $my_query = new WP_Query('showposts=5'); while ($my_query->have_posts()) ...
0
votes
1answer
21 views

Send/Publish a Post front end

i use this code to create a page with the user can send a post on front-end but i have a problem..when i click "submit" nothing happen. Where wrong? <?php /* Template Name: Rate Wine Form */ ?> ...
0
votes
0answers
20 views

Disqus comments not displaying properly

I recently installed the Disqus plugin on a theme I have been building but am not seeing the Disqus comment section as I should be. I can see that it is sort of working, for example using Dev Tools I ...
0
votes
0answers
9 views

Custom Admin Menu Order

I have a simple solution in my functions.php for reordering the admin menu. Here it is: // Admin menu - reorder function custom_menu_order($menu_ord){ if (!$menu_ord) return true; return array( ...
0
votes
2answers
36 views

Changing the title of post with code

Am actually new to wordpress development. I am just trying to change title of the individual post..So i have used the function get_the_ID() to fetch a specific post. I know the name of the title can ...
0
votes
1answer
29 views

filter h1 tag to add a word at the beginning of the text

I'm looking for the best way to obtain this. For example, I have the h1 tag whic is: Web Design I want to add, in all the h1 tags of a certain post type, the same word at the beginning, which is my ...
1
vote
0answers
26 views

Show comments of a user post only when they are login

I have a front end client portal I created when a user logs in they are redirected to a page called "Dashboard". The pages displays recent projects, invoices, and recent messages. Recent messages ...

15 30 50 per page