0
votes
0answers
7 views

Wordpress AJAX call returns 0

I'm trying just to connect the pieces of a form triggered AJAX call in wordpress. Once I connect the 3 pieces I should be off and running. I have changed a lot of things but it ALWYAS gives '0' as ...
0
votes
0answers
5 views

Expire a post with meta_value after two weeks

I am trying to use the below code to query for some posts and then change a meta_value in order to "expire" it after two weeks time. I can't get this to work and it's difficult to test since I can ...
0
votes
0answers
4 views

302 on Wordpress Multi site installation on subdomain

I have a Multi Site installation on www.example.com, which is working fine. Afterwards I've made an exact copy of this installation and placed it on a subdomain of this site: subdomain.example.com. ...
0
votes
2answers
15 views

Add multiple custom meta boxes to different custom post types

I want to add one custom meta box to a specific custom meta type "chifres" and two custom meta boxes to a specific custom meta type "presse". This is how far I've gotten: Here is my code: //Add ...
-1
votes
1answer
12 views

Why does Google Webmaster Tools say my whole site is blocked by robots.txt when I have no robots.txt? [on hold]

I submitted a sitemap to Google Webmaster Tools. Several times. I keep getting the same messages: "Url blocked by robots.txt." and "Sitemap contains urls which are blocked by robots.txt." But I have ...
0
votes
1answer
17 views

How to make posts appear under pages

I have created pages for my website, however when i create a new post, it is not assigned to any page and i am missing the option to place it under a certain page. For example i have a menu like Home ...
-2
votes
0answers
21 views

newcomer to Wordpress - the basics of creating config.php [on hold]

This is a very basic question - I've installed Wordpress via iPage. Wordpress wants me to create a wp-config.php file. I've entered what I think are the correct details for the database (taken from ...
0
votes
0answers
16 views

Add custom field for author and show list author order by that field

I am using variables $author_like_count to count like from all post of author. $author_like_count = $author_like_count + get_post_meta($post->ID, 'like_count', true); My question : How to set ...
0
votes
1answer
22 views

Php file that doesn't recognize wordpress functions

I have a custom contact form that I am trying to process in other file: The form: <form method="post" action="<?php echo get_template_directory_uri() . '/templates/contact.php' ?>" ...
0
votes
1answer
25 views

Retrieving 3 latest post from each of 5 different custom post types

I have 5 different custom post types. I am showing 15 latest post from them on my home page using following query: $query = new WP_Query( array ( 'posts_per_page' => 15, ...
1
vote
0answers
21 views

Is there an atomic way to update_option in Wordpress (to ensure data integrity)?

I want to update an option which is an array by adding a new value, but there's no atomicity or guarantee of data integrity. EXAMPLE //Get the option value (an array) $val = get_option( ...
0
votes
2answers
20 views

how to link to the next/prev posts in index loop in same category?

Is it possible to link to the next/prev posts in index.php with query_posts('cat=56'); before loop? <?php query_posts('cat=56'); if (have_posts()) : while (have_posts()) : the_post(); ?> next ...
0
votes
1answer
9 views

Automatically add image caption with values from a post parent field?

i have a custom dropdown field on post and i would to get the value from that custom field and insert it on each image caption field uploaded to the current post. I have been looking for a way to do ...
0
votes
0answers
21 views

Giving auto update functionality to my theme

I have created a free wordpress theme. I want to give the users the ability to auto update the theme from the dashboard if there exists a update in mysite. We can see that when we are using ...
1
vote
1answer
17 views

Checking that the Rewrite API is available

WordPress supports URL rewriting through the Rewrite API. It relies on underlying HTTP server mechanisms to get the job done. It is not always possible for WordPress to enforce the Rewrite rules. For ...
0
votes
1answer
13 views

Changing logo image in header.php upon language detection

So i'm designing a website that will feature the Polylang plugin for automatic language detection, but I've run into a bit of a wall with the logo image. It resides in header.php, but I can't think of ...
0
votes
1answer
14 views

Post-Archive like a page in a specific subdirectory

I have a webpage with posts which belong to specific categories (eg projects). I want to show the archive of a specific category like a page. Status quo The site structure is similar to this: / ...
1
vote
1answer
23 views

Order posts by category name

Is there any way to order posts by category name? I tried $args = array( 'post_type' => 'dlm_download', 'posts_per_page' => 10, 'paged' => $paged, 'order_by'=> 'cat', ...
-1
votes
0answers
9 views

Please help: Image dimensions [on hold]

I always take care off everything to get the website better, but i´m stuck with a problem that i couldn’t fix. Please a take a look in GTMetrix speed test ...
-1
votes
1answer
26 views

echo vs output variable [on hold]

Someone once told me, that it is good for performance, not to open and close php tags and use echo all the time, like that: <hgroup> <h1><?php echo getHeading1(); ?></h1> ...
0
votes
0answers
18 views

Some images don't get linked when setting link-to to media-image

When inserting images into posts I have some images which refuse to recognize their link-to setting. The setting is properly saved and I also tried switching to a none setting and back, but with no ...
-1
votes
0answers
10 views

Spam casino links in posts [on hold]

My Wordpress installation has been recently affected by some sort of malware which randomly include spam links within the content section of posts. Here's an example: <span ...
-1
votes
1answer
13 views

update_user_meta to store multiple post id values [on hold]

I am new to WordPress coding and I was trying to create a new user custom field to store multiple post id's, triggered by a submit button. I declared a new array called $args which I try to update ...
-3
votes
0answers
17 views

Trying to learn wordpress [on hold]

I want to start with wordpress website Development plz guide me for this as wordpress is totally new for me and it would be from the basic if some body have Tutorial or some example plz share on my ...
4
votes
1answer
27 views

How make get_next_post() return first post when viewing last one

I need a way to link to the first and the last post (CPT) created. For example, I'm in the last post and if I click in "next" I should go to the first. Now i have this <?php $next_post = ...
-1
votes
0answers
19 views

How to use wp_enqueue_script with wp_localize_script [on hold]

I am developing a free WordPress theme for repository. I have used the following code in header.php file <script type="text/javascript"> if($(window).width()>1024) { ...
0
votes
0answers
12 views

wordpress plugin JSON API search within specific category

From the JSON API plugin doc I notice that I can get the post within some category http://abc.com/?json=get_category_posts&id=9 And I can also search the post ...
0
votes
1answer
15 views

Massive Tags Remove Using MySQL

I am using WordPress 3.4.2 for one of my site and currently it has 38,251 tags Now i want to remove all Tags from my site, so which way will be more safe to truncate every tags my site has.
0
votes
1answer
31 views

List all native posts in template page?

I've created a page template and I want to do a really simple task: List all (native) posts I have this code inside the template-file: $args = array( 'posts_per_page' => -1, ...
0
votes
1answer
22 views

Excerpt all post content Content Same Size without word cutting off

On my category page there are list of 24 posts with title and excerpt content. To display specific lengths of content, I am using substr function. Now the issue is that each post excerpt content are ...
0
votes
0answers
13 views

WP Multisite: Redirect loop after migrating to real server

I was developing a multisite mydomain.dev locally on my machine. Everything works fine on my local machine. It was previously a normal site. The transfer to the real server: I exported the local ...
0
votes
0answers
4 views

Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7

Running into an issue where sub sites of a multisite (fresh installation of 3.9 and no plugins or themes) are throwing 404 error when trying to access the wp-admin section of the sub site. It is ...
0
votes
0answers
20 views

Change the sidebar from left to right twentyfourteen theme

I am creating a site using 2014 theme. I would like to remain with the theme but however, I am interested in shifting the side bar from left to right as it is more ideal for my site. Is it possible to ...
-1
votes
0answers
5 views

plugin to show latest uploaded images automatically [on hold]

i searched a lot in Google for a plugin which is used for photo gallery and also which should show the latest uploaded image's thumbnail on homepage. the second is the main requirement.Plugins for ...
2
votes
0answers
18 views

Listbox return wrong value in WordPress 3.9

I have already created listbox for WordPress 3.8 but it's not working in new version WordPress 3.9. So I write the JavaScript code: (function() { var ICONS; var icon = function(id) { return ...
4
votes
1answer
40 views

How to provide a local fallback for Font Awesome if CDN fails?

I'm trying to develop a Wordpress theme and figure out how to provide a local fallback for Font Awesome if CDN fails or I develop my theme on a local server without internet connection. The solution ...
0
votes
1answer
14 views

Showing recent post of category in page

Any ideas, how I should do this: Recent post (with comments) shown in page? I need fixed url example.com/question that shows the most recent post, style should be same as in normal one post? Can I ...
0
votes
1answer
18 views

Trying to get property of non-object error with thumbnail

I'm trying to get the thumbnail of my featured image to display on my home.php (blog) page. It is displaying fine, but when debugging mode is turned on, I get this error: Notice: Trying to get ...
0
votes
1answer
20 views

How to modify display of blog listing page?

I am displaying list of blogs with pagination on /blog url. The home page is a static page. Now, I want to redesign the /blog page to display thumbnail ( the featured image) with each blog excerpt. I ...
0
votes
0answers
15 views

W3 TOTAL CACHE and PLUGIN CONFLICT

After W3 Total Cache update to the latest Version my Image Generator (Meme) WP Plugin dont generates a image. Imput Text and other frontend functions work fine, but after click on the generate image ...
-2
votes
0answers
12 views

logout hyperlink in native menu [duplicate]

Is it possible to use the built-in, native WordPress Appearance > Menu features to create a logout hyperlink that does not redirect the website's user to a confirmation screen? If so, how? Thanks.
0
votes
1answer
17 views

External URL Link as Featured Images

How do set post thumbnail (featured image) from an external URL without uploading the image to WordPress media library.
0
votes
1answer
11 views

Programmatically add posts from specific category to menu

I am wanting to add individual posts to my primary menu programatically based on category I have used the wp_nav_menu_items filter previously to add pages to the menu but I am stuck when it comes to ...
-1
votes
0answers
12 views

phpthumb Error code [on hold]

i get this error on browsing my Photo for website cre-me.com strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically in ...
-1
votes
0answers
7 views

Woocommerce 2.1.7 related products - tags instead of categories [on hold]

I have the following lines of code in my website that will display the related products at the bottom of my single product pages using the WooCommerce 2.1.7 plugin... functions.php: // display ...
0
votes
0answers
6 views

How to Rewrite Attachment URL when use %category%

When I use permalink structure %category%/%postname%/ the result is: mydomain.com/category/postname/attachment/attachment-title what I want to get is: mydomain.com/category/postname/attachment-title ...
0
votes
0answers
7 views

admin submenus not appearing

When I log into my wordpress site, i have a few problems. The submenus of the admin area do not appear when I am hovering over a menu. Also the Widgets area is completely messed up. Its very hard to ...
0
votes
0answers
9 views

rewrite url for a single custom post on a multisite [duplicate]

I have a custom post type named 'itineraries' and its slug is being rewritten to 'destination' My urls to a single itinerary post look like this: /destination/%post-name%/ I have a custom taxonomy ...
-3
votes
0answers
15 views

Forgive my stupidity [on hold]

There is a custom side bar that lists 3 sections of menu items. I want to have an on click javascript function for each of them that is unique. where is the actual loop/presentation code where i can ...
-2
votes
0answers
19 views

Insert City into Post Byline

I would like my byline to read "posted from ", such as "posted from New York City" or "posted from Los Angeles". Is there a quick and easy way to do this? Does Wordpress store the ip address of ...

15 30 50 per page