All Questions
0
votes
0answers
3 views
tb_show is not defined in advance custom field
I am using advance custom fields plugins.
When I edit a post then i can't edit/add new image in image field in advance custom field.
Show this error below:
Uncaught ReferenceError: tb_show is not ...
0
votes
0answers
3 views
Filters on Login Page
I am trying to modify the login page using built in filters. The add_actions are working as expected, but I cannot get the filters to work. This is the code that I have in my functions.php:
...
0
votes
0answers
6 views
Sorting Custom Posts by category
I want to sort posts of my custom post type on a page. i.e. any visitor can select a category from drop down to list posts of that category on top. Can any one help to do this task? I tried a lot and ...
0
votes
0answers
10 views
get_next_posts_link() stops displaying at page 4
Please start by taking a look at this quick video: http://www.screenr.com/8vSH
The problem: get_next_posts_link() disappears on page 4. That is, the "go to older posts" link disappears once I am in ...
0
votes
0answers
12 views
Plugin settings aren't saved
I'm trying to write a basic settings page, and for some reason the settings aren't saved. This must be really basic, but I can't see the error. Here's my code:
...
0
votes
1answer
13 views
How to search for articles containing two words?
I'd like to serach my blog for articles that contain the two words bash and variable. There is an article that contains both words, but it is not found. It seems to me that the wordpress search only ...
1
vote
0answers
12 views
How to add additional search terms (e.g. synonyms) to the search?
I'm running a blog about different software tools. I frequently use the search to find articles that I wrote for the blog. I also wrote an article about latexdiff, but always forget the name and try ...
0
votes
0answers
7 views
How to load specific shotcodes files after device detected using hook?
I want to create an action hook to detect device.
When hook detect any device like mobile/tablet/iPhone then it load mobile specific short-code file otherwise its load normal short-code file.
For ...
0
votes
0answers
7 views
How to include Related Posts in WP RSS feed
How to include Related Posts in WP RSS feed not use plugin?
I have search around on google and stackexchange but have no result about this.
Thanks all friends!
0
votes
1answer
15 views
How can I verify users facebook ID that he provides during signup process
In my signup form there is an input field that gets user's facebook ID, I just want to verify if its correct before signing up the user.
0
votes
1answer
12 views
Custom theme template files
Im trying to create a Theme from scratch, its quite challenging, cause im new to WP. I follow this developing process at Teamtreehouse. All is very good, its just, im puzzled with the template file ...
0
votes
1answer
13 views
Custom Form only for admin
I want to add a custom form with some fields such as text,date,dropdown etc only viewable and editable for admin.When I submit the form the data should be displayed in the desired page that I ...
1
vote
2answers
9 views
How to set max_allowed_packet using php code?
I am trying to set max_allowed_packet using PHP but I get this error:
WordPress database error Access denied; you need the SUPER privilege for this operation for query SET GLOBAL ...
0
votes
0answers
14 views
How to hide a post from 'Recent Posts' widget?
I'm trying to hide a post from the 'Recent Posts' widget in the sidebar. I know I can do this with the 'Special Recent Posts' plugin, but that plugin really uses up a lot of resources.
I've got the ...
-1
votes
0answers
7 views
To upload image in wordpress from External link
I have image coming from external link
http://deomain.com/images.php?id=<id>
Now I want to upload image using above url into wordpress.
Please suggest code.
Thanks in advance.
0
votes
1answer
7 views
get_the_term_list() display in ul li and remove <a> tag
I want to remove tag in get_the_term_list()
<?php echo '<ul class="styles">';
echo get_the_term_list( $post->ID, 'portfolioType', '<li>', ',</li><li>', '</li>' ...
-1
votes
0answers
9 views
which survey plugin can setup relationship between questions? [closed]
For example the first question is male or female? different answer will bring you to different next question.
I know Polldaddy do this, but it's online survey.
0
votes
0answers
9 views
Only show comments by manually loading them
I have seen a few sites that by various reasons prefers to not show the whole list of comments on a single page post, but rather hide them or show them on a different page altogether. I have been ...
0
votes
2answers
22 views
Connect another DB and fetch records from some tables
I want to connect with another wp db & then fetch records from new connected db then close that db.
I follow How can I connect to another WP database and use WP_Query? but after connect to new db ...
0
votes
2answers
13 views
Not the typical order by posts by date question
I am using WP_Query to get all posts from a custom post type. This works great for listing out all the posts. However, the post itself has a custom date field and I want to list all posts for a ...
0
votes
1answer
18 views
Import existing image as a single post
I want to add a bunch of existing images on the server but I want each of them added as a separate post instead of all images into one post. How can I do this?
1
vote
1answer
21 views
Show Posts From Same Category OR Same Tag
Assume a post is categorized in "Fruit" and tagged with "Apple".
The following code shows posts with category "Fruit" AND tag "Apple"
$args = array(
'tag__in' => $tag_in,
...
0
votes
1answer
14 views
WP deregister, register and enqueue dequeue
a plugin that I bought is loading a few js and css files on all pages, so I wanted to write a new function to deregister the handles, and enqueu them where I wanted. however I am not sure If I have to ...
0
votes
1answer
13 views
fetch_feed function works on template index.php but not in plugin/wp-admin
I am using fetch_feed and basically have the same code as the great example provided here
but I am creating new posts from the content instead of displaying it afterwards. The errors I am seeing are:
...
0
votes
1answer
10 views
index.php isn't front page but shows as it is
I am working on a website and I am using front-page.php from the 2012 theme as my front page. I set it up that way in settings and set a blank page as the blog in settings. So for the blog, it ...
0
votes
1answer
19 views
How does wordpress add 'style' attribute to <a> element
In my post the html code is like this:
<p><a href="http://mysite.com/xxx/xxx/xxx/mypic.jpg"><img class=" wp-image-124 aligncenter" alt="xxxx" ...
0
votes
1answer
17 views
Overriding a function in wordpress
A theme that I bought is adding unnecessary inline JS code that is not needed in the front page.
/* Scripts - dynamic css */
add_action('wp_footer', 'upme_custom_scripts');
function ...
0
votes
1answer
16 views
How to correct Error: message on website Twitter Feed
I'm receiving a Error: Twitter did not respond. Please wait a few minutes and refresh this page message on my website at www.toan.ca. This has been going on for a few days and i would like to know ...
0
votes
0answers
25 views
Move site to new server causes 500 Server error
I am moving my WordPress site from my old hosting company to the new one.
I am at the current version, 3.5.1.
I created the domain on the new site copying over all the files inclusive of any hidden ...
2
votes
1answer
24 views
Export specific menu
How can I export a specific menu out of wordpress? I have a list with many URLs and I need to copy it to multiple sites. But I don't want to do it manually.
0
votes
1answer
18 views
How can I only display one link rather than many?
So using this snippet:
<?php
foreach((get_the_category()) as $childcat) {
if (cat_is_ancestor_of(10, $childcat)) {
echo '<a href="'.get_category_link($childcat->cat_ID).'">';
echo ...
0
votes
0answers
13 views
Buddypress cannot crop avatars Amazon ec2 server
I'm running an instance of BuddyPress on an AWS ec2 instance. At first I could not uplaod any media to the server - originally all files were root:root. I changed the wp-content folder to ...
1
vote
1answer
15 views
Why Won't Exported Blog From One Site Import Into New Site?
I have an old RHEL Workstation site, running the latest wordpress version 3.5.1.
I have a newer CentOS 6.4 site, running the latest wordpess version 3.5.1.
I have added the Wordpress import plugin ...
0
votes
1answer
9 views
If custom field is doesn't empty shows field, if is empty, show a featured image?
I tried and shows me both.. http://pastebin.com/thQkStqQ
what i have done wrong?
0
votes
0answers
8 views
Defer javascript [duplicate]
Is there a way to defer javascript when enqueuing javascript file in theme functions?
Something like this:
<script src="demo_defer.js" defer></script>
But used in the content of this:
...
0
votes
1answer
31 views
Ajax functions - no access to wp-admin.php only online
I'm having some trouble with my custom ajax function.
I have this on my console log :
"POST MYSITEURL/wp-admin/admin-ajax.php 302 Found". So my functions won't work...
And I really don't understand ...
0
votes
0answers
18 views
MCE table plugins are broken?
I've tried individually using both the MCE Table Buttons and the Ultimate Tiny MCE plugins on my WordPress 3.5.1 site, and they both do the same thing; I go to edit a post or page, I click the table ...
0
votes
2answers
22 views
Adding a tag to wp_nav_menu
I am using wp_nav_menu and I have a need for custom implementation. The default markup is like this:
<ul>
<li id="menu-item-59" class="menu-item menu-item-type-post_type ...
0
votes
1answer
18 views
Additional .htaccess rules based on wp page
I've created a page in the dashboard called Authors, created a new template-authors.php with completely own logic. It works well, going to website.com/authors/ I see a list of all authors, specifying ...
0
votes
1answer
12 views
Apply the_content filter to a custom field with multiple values
I have a custom meta box set up that allows users to paste the Youtube URL of a video so that it can be embedded into a post/page.
The meta box can be repeated so that a user can add as few or as ...
1
vote
1answer
16 views
Auto-fill Custom comment fields
Thank you for reading,
I added custom fields to the comment form, and saved the input in the DB, following this tutorial ...
0
votes
1answer
31 views
cloning a WP_Query
I'm working with several nested loops in order to create a statistics table for teams in a league and I'm having trouble getting my original query back. I've read that I should clone the original ...
0
votes
1answer
6 views
wpdb get_var is not returning any result (verified mysql query returns only one value)
I'm trying to modify a wordpress plugin to make it more adaptable for our needs. I have a custom user_meta called practice and we separate our users based on practice, so we need to separate quiz ...
0
votes
0answers
16 views
Post with multiple 'content's and muliple comment lists
I am sorry my post looks long.
I am creating a private small community for a group of authors. Their final goal is to create, online, an encyclopedy relative to the holy book. In other words, to each ...
1
vote
1answer
15 views
How to programatically change username (user_login)?
As in the title, how to programatically change user's login?
I wanted to use wp_inser_user function, but it appears that when updating current user, it doesn't change his/hers username. Should I use ...
0
votes
1answer
14 views
Hide allow trackbacks/pingbacks
Under the discussion tab on the post page, there's 'allow comments' and 'allow trackbacks and pingbacks', how would I hide the option to allow pingbacks from users but still have it be on by default?
0
votes
1answer
16 views
Shortcode strips formatting and returns at content top
Using the Advanced Custom Fields plugin and I've got a shortcode going for a repeater field, but it returns the list at the content top. I changed it from an echo to a return, which I understood would ...
0
votes
1answer
10 views
how do I add role and capability after I create a new user
I have a simple requirement:
1. create a user
2. create a role for the user
3. add capability for the role
First, create a new user
$uid = wp_insert_user($userdata);
Second & Third, create a ...
-2
votes
0answers
13 views
Is there a plugin to get people subscribe to a weekly newsletter with the following functionalities : [closed]
I haven't found a subscription plugin that does all that. Is there any ?
A plugin that sends a weekly notification email to a mailing list ; for which I can configure :
which day in a week it is ...
0
votes
1answer
39 views
How to display custom post type only on a certain page?
I have created a custom post type called 'project'. But how do I get the custom post types to display only on my main template? It's a one page website and I don't want it to direct the visitor to a ...




