0
votes
2answers
206 views

How to use the 'comments_number' filter?

I'm not sure how to use this filter. Could someone show me an example? I'm trying to change ('0', '1', '%') to ('0 Comments', '1 Comment', '% Comments'). I'm using this function to get the comments ...
0
votes
2answers
54 views

Wordpress options text format

Wordpress converts my theme options text with smart quotes. I know that to remove problem from posts etc: remove_filter('the_content', 'wptexturize'); remove_filter('the_excerpt', 'wptexturize'); ...
0
votes
2answers
163 views

Set Default Category to Username

I installed a plugin called "Symbiosis" which creates categories automatically copying a user's username upon them signing up. Whenever any user creates a post on the site, I am trying to figure out ...
0
votes
2answers
273 views

Custom post type paging 404 error

I've an issue on custom post type, I've create a custom post type called "Agenda" and the rewrite url for http://example.com/agenda it works correctly, it points to the archive-agenda.php template ...
0
votes
2answers
32 views

Unassign uncategorized from post with 2 or more categories

So I have a bunch of posts assigned categories like: a main one and uncategorized one (which I forgot to unselect). The problem is that i'm using %category%/%postname% as permalink which will use the ...
0
votes
2answers
66 views

WP Nav Menu: String replacements

I have a short function to clean up the WP Nav Menu. add_filter('nav_menu_css_class','strip_classes'); function strip_classes($a){ return (in_array('menu-item-71',$a))? array('contact') : ...
0
votes
2answers
1k views

Use ACF to display a customizable WooCommerce product add to cart button

WooCommerce is notorious for not being all that customizable (except for templating that is a seriously convoluted process). So, I am attempting to use Advanced Custom Fields (plugin) to create an ...
0
votes
2answers
43 views

Including Javascript options

For a Wordpress Theme I know javascript files (ending in .js) must be included using wp_enqueue_script in functions.php but how do I include additional javascript code, for example say I need to add ...
0
votes
2answers
94 views

Use domain with existing Wordpress install

I have a working, self-hosted Wordpress install residing in my webspace at crypticname.online.de/Mysite/ and acquired a domain, let's say mysite.de. I would like mysite.de to request the home page of ...
0
votes
2answers
291 views

Create custom links for excerpts with php dynamically

Good Day I am using excerpts in my wordpress theme. Now in wordpress's documentation, they say wordpress does not automatically add links for the excerpts, you have to manually add them like this: ...
0
votes
2answers
96 views

Custom fields driven site. I want to make a visual editor driven page template. How?

My company had a website developed that is entirely driven by custom fields. We're now discovering that we didn't anticipate the need for pages with custom layouts, the kinds that can be made on case ...
0
votes
2answers
550 views

Recent Posts slider, using WP_Query(), loads duplicate sliders

I have written a small piece of code for Wordpress that will show the most recent top 4 posts in a slider (the Filament Group Responsive Carousel). It works, displaying the posts and sliding them etc, ...
0
votes
2answers
180 views

Posts don't appear on the Blog page

I am in the process of building a book review site for my daughter using the twentyten theme. For some reason the "Blog" page does not display any of the posts that I have written. I have searched ...
0
votes
2answers
176 views

Link to Portfolio page by id instead of name

I'm trying to make a dynamic button that goes to portfolio page (no matter what ID/name it has), it's currently like this: $portfolio_page = get_option('theme_portfolio_page'); $portfolio_pid = ...
0
votes
2answers
90 views

How do I return an image from a script

I have googled but must not be using the correct terms. I am trying to add a script to my WordPress plugin that takes a url and returns a reformatted image. I know this is frowned upon as ...
0
votes
2answers
113 views

Numberposts 1 not cooperating in 3.5

Trying to fix my custom gallery after the 3.5 upgrade, and using the code below I'm trying to get the first image of the gallery in "large" size above the content output followed by the remaining ...
0
votes
2answers
106 views

subdirectory install breaking existing links

I've had this issue several times now. While building a site, including some content, I keep wordpress in a subdirectory (say, /wordpress/). When putting it live, I move/copy 3 files out of the dir ...
0
votes
2answers
33 views

Reservations as Post

I am creating a multi-user, multi-product, multi-product-category reservations engine proof of concept. As I need to build it really fast I am using Wordpress's custom post types to manage a lot of ...
0
votes
2answers
43 views

Custom Post Types, Taxonomies and Terms… I'm getting confused now!

Hopefully I can explain this correctly, as I'm getting confused myself now with what I want to achieve! I have two Custom Post Types, "Students" & "Boats" In "students" I have the Taxonomy ...
0
votes
2answers
282 views

Add class to <li> based on content of link in <li>

I've added a custom JavaScript file to my header via functions.php and the file is linked fine when I check the source code (listed well below the main call to jQuery). Within the custom JavaScript ...
0
votes
2answers
165 views

custom page url slug needs illegal ?id=1 for javascript

I have created portfolio page which contains a image-slid-menu for navigation. For an menu item to appear as open, javascript gets instruction like ?id=0 appended to the url. for instance ...
0
votes
2answers
122 views

Twenty-Eleven Theme and Automatic Picture Resizing

I'm running a family wordpress blog: http://www.kjirstiandtom.com We have a lot of pictures we put up for family. I'm using the twenty-eleven theme, which I love. I did minor css edits to change ...
0
votes
2answers
55 views

Create a child Theme or custom Theme

I am new in WP but I 've good knowledge of HTML and CSS. However, my PhP knowledge merely covers some basics. I also have good knowledge of Joomla but I wanted to give WP a chance. I need to make a ...
0
votes
2answers
119 views

Display Headings on Index page in different font sizes

The index page of any wordpress blog has a same size of font in their heading. Can't we tailor size of headings by ourselves for each post? If we change it by CSS, every heading will be changed. Or ...
0
votes
2answers
105 views

How to Link to WP Pages Internally and Extenally

Converting my HTML template to WP Theme I am confused how to linkto the pages in WP? For Example I have an Item div which I would like to link to my store page when user click on that but I dont know ...
0
votes
2answers
24 views

Styling Active Links Within Wordpress

I wish to style the active link (ie. when home page is selected that the home page link be a different colour) .current-menu-item a { color: #36c; } My test site is : www.milknhny.co.uk/ShopTest I ...
0
votes
2answers
346 views

WP Query - duplicated posts once including tags in search results

I running WordPress on IIS & SQL server. As some of the plugins do not work correctly with DB ABSTRACTION I am using a lot of functions.php filters as so on. To make my search results include ...
0
votes
2answers
292 views

Backup Buddy not working on dedicated server with APC

I have a Wordpress site that uses the backup buddy pluggin. It has always worked well when I was on a shared server, but ever since I migrated my site to a dedicated server, I have had many problems ...
0
votes
2answers
162 views

Can i show items based on the day with php?

I have a code on my site that displays different headers for different post types using the if ( get_post_type() == 'post type here' ) { code but is there a way i can do this for days of the week? ...
0
votes
2answers
244 views

AJAX request not routing through proxy

I've built a plugin that uses AJAX to post a URL to the URL2PNG API and bring back a screenshot into WordPress via wp_remote_get. It works beautifully in my development environment. In production, ...
0
votes
2answers
134 views

can not call functions in function.php

In front-page.php I have the following code: <span class="amountOnline"> Online: <?php echo $cbMain->GetInfo()['Players'] . '/' . $cbMain->GetInfo()['MaxPlayers']; ?> ...
0
votes
2answers
310 views

wp_paginate not working in combination with WPML plugin?

I have installed the wp_paginate plugin and the WPML plugin. Now I have set 'Dutch' to the basic language and added 'English' as the second language. I set the Blog posts to display to: All posts ...
0
votes
2answers
90 views

Multiple widgets in wordpress

I have created a wordpress widget. It has a drop down in widget options. The dropdown contains "facebook" and "twitter". If admin selects "twitter", then twitter follower count is displayed inside the ...
0
votes
2answers
2k views

WooCommerce RSS feed

I want to do eCommerce in WordPress. So to do that I have installed the WooCommerce plugin. It is working fine, but now I want to put a RSS feed link in my site. I know about the normal WordPress RSS ...
0
votes
2answers
217 views

Migrated site redirects to localhost after successful login

I have copied a site to a non-public demo server to make some edits. I transferred the files and the database (having disabled permalinks beforehand), updated wp-config.php with the new database ...
0
votes
2answers
154 views

get_post_type() and WP_QUERY issue

I am having issue with WP_Query, My scenario: a) Using http://wordpress.org/extend/plugins/countries/ b) Using WP_Query to fetch countries and their codes only. c) resetting query properly. d) using ...
0
votes
2answers
88 views

Recent comments per tagged post?

Could you please help me with some code to get all recent comments for posts that are tagged with for example "XYZ"? Thanks in advance, you guys are great!
0
votes
2answers
244 views

Show count of all comments by meta_value from a users posts

I'm trying to display the total number of comments for a users posts limited to a comment meta. I've tried using both get_comments() and WP_Comment_Query() but I get the same result of "1" for the ...
0
votes
2answers
105 views

Rewrite function

I have a wordpress blog. I get url in blog like this, http://www.domain.com/2013/01/test19/page/2/ But I want my ur like this, http://www.domain.com/page/2/ So can we rewrite this url. I ...
0
votes
2answers
214 views

Only display post content in search results

How can I just show the post content in a search result? Currently, the search results displays the post title, author and date above the page content. Here is how it looks now: ...
0
votes
2answers
109 views

Posting to loop.php file

I am trying to post to the loop.php template file and it is not going through for some reason, usually it should work but it isnt. Is there a alternative way to get this done? This is what I have in ...
0
votes
2answers
127 views

In list with recent coments - only show one comment per page/post (latest comment)

I am trying to make a custum 'Recent Comments' code for use in the sidebar. I have come a long way, but there is just one thing that doesn't do what I'd like it to do. What I want is that, per page ...
0
votes
2answers
70 views

Common login for websites belonging in different networks

Is there a tool to connect the databases of 2 sites sitting on separate networks with one login allowing them to share a common user base? I have searched around, but I unable to find a clear answer ...
0
votes
2answers
494 views

WordPress database error Got error 28 from storage engine for query

I had been using WordPress for the past three years. I haven't got any errors in the error_log. I think the problem would be cause of the new server my hosting is in. For the last two months i am ...
0
votes
2answers
51 views

Are taxonomy hierarchies possible?

The way WordPress handles taxonomies and terms isn't fool proof enough for the users of a project I am currently working on. Here's the example I need: I have a "Conference" taxonomy, a "Divisions" ...
0
votes
2answers
126 views

Custom MySQL query to list post

I have the following query: SELECT p.* FROM orders_items oi INNER JOIN products pr ON pr.`post_id` = oi.`product_id` INNER JOIN posts p ON p.`ID` = pr.`post_id` AND p.`post_type` ...
0
votes
2answers
61 views

WP Login Button for current domain

I want to make a link that goes to wp-login.php for whatever domain I'm at now. Something like: <a ...
0
votes
2answers
145 views

Upload image and assign it's id to post

At the moment i am working on database conversation script from other cms to Wordpress and faced one problem: I have a list of images, so i need to upload it to Wordpress, after it receive new link, ...
0
votes
2answers
691 views

Uploaded images do not show on localhost

I'm working with Wordpress 3.3.1 on a local installation. I've uploaded an image file and it doesn't show up. The base directory is a symbolic link /var/www/wordpress/ that leads to ...
0
votes
2answers
610 views

Use a different template/theme if mobile only on home page

I have looked around and can not find anything that fully works for my issue: I want to be able to set the home page template on the fly when a user is visiting from a mobile phone but not a tablet. I ...

15 30 50 per page