0
votes
1answer
1k views

How to Make Archive ShortCode

I checked that there is an shortcode on wordpress.com but it seems there is no build in way of adding the shortcode of archive on wordpress.org site. I know there was one plugin in repo but it's 2 ...
1
vote
1answer
45 views

Dont’t change active Button while I’m listing a category?

I have a simple Navigation: Blog, About, Contact. Mainsite is Blog. To keep the current Button highlighted, I used this in my CSS: li.current_page_item a{ border-bottom: 1px solid #212121; ...
0
votes
1answer
227 views

Custom category URL not displaying posts

I have a custom post type with custom categories using the following: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'products', array( ...
0
votes
1answer
379 views

jscrollpane problem with my child theme

i am trying to use jscrollpane , but i tried everything , its still not working this is my function page <?php /** * Custom Child Theme Functions * * This file's parent directory can be ...
4
votes
3answers
419 views

Getting Links in Multiple Categories (intersection)

I am using get_bookmarks() to get bookmark links. I can get links posted in cat A or cat B, but I only want links in both A and B. Example what I need: I have three link categories cat#1, cat#2, ...
2
votes
4answers
13k views

Different template of products for specific category. WooCommerce

For example i have category coffee machines, and one template for coffee machine single product template, but for category coffee i want to have different single-product.php template, how to implement ...
0
votes
1answer
774 views

Stylesheet is not loading on firefox and IE!

Hi I recently started to learn wordpress theme development and today I started my first worpress theme.For some reason my stylesheet get's loaded in chrome but not in firefox and IE the browsers I am ...
0
votes
1answer
230 views

database not responding on localhost

I'm trying to work on an existing WordPress site on my Mac using MAMP. I've setup a new database using phpMyAdmin and imported the tables from the backup of the online version. I pasted this into ...
0
votes
1answer
607 views

How can I remove “Powered by Wordpress” pop-up disclaimer in wp-login.php?

In wp-login.php I added my corporate logo. However, when the mouse hovers on it, the disclaimer "Powered by Wordpress" appears. How can I remove it?
1
vote
0answers
768 views

Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php

Why uninstalling the following (empty) plugin results in error? Here is my-plugin/my-plugin.php: <?php /* Plugin Name: My Plugin */ and my-plugin/uninstall.php: <?php When I click ...
1
vote
2answers
175 views

How to set up WP Cron in this scenario

I wanted to use Wordpress built in WP Cron to update currency rates daily. I use this function currently, require_once(WP_PLUGIN_DIR . '/autocurupdate/currencyexchange_class.php'); $cx=new ...
0
votes
1answer
297 views

Editor capabilities - admin_init

I'm having a little difficulties with roles and capabilities. Editors gets a 'Cheatin uh?'-message when they try to update the custom theme-settings. Can anyone explain why - or maybe even have a ...
2
votes
1answer
147 views

How to work on a live WPMS blog when domain is unresolved? [closed]

How does everyone work on a live blog in WPMS when the domain name still points to a different server/IP? I need to configure the site before the domain Name Server settings are changed to the new ...
1
vote
2answers
129 views

How to bring an old edited/modified post in the front of page?

Is there a way to bring, automaticaly, an old edited/modified post in the front of page? More clear, I want that every time when i edit a post to display it in front of my page, like sticky posts or ...
0
votes
2answers
525 views

How to remove all javascript in a theme wordpress?

I have a theme name is mytheme in themes/mythem/functions.php I using code: function remove_scripts() { remove_action('wp_head','mytheme_head_scripts'); } add_action('init', 'remove_scripts'); ...
0
votes
2answers
693 views

Why am I getting a “Call to undefined function curl_init()” when I try to use the Sociable plugin?

I have a wordpress blog at http://www.1000irritatingthings.com I had the sociable plugin working for a while, but now when I try to configure it, I get the following error in the admin panel when I ...
2
votes
1answer
636 views

Pass variables from one widget to another widget

I wrote a widget but I need to use the variables from one widget in another...both widgets are in the same dynamic sidebar. This is what I am trying to do: I wrote a widget that adds a footer to the ...
0
votes
1answer
228 views

can i run wp as root permissions

Im not sure if this question is about server, git or wordpress. i have wordpress set up on ubuntu VPS in /home/user its working now when all chown and group is "user". however, when i git pull (as ...
0
votes
3answers
1k views

Split wordpress loop to multiple layouts

OK so I've searched a lot and couldn't find a straight forward answer to my question. I am simply trying to use one category loop that will display posts in a category page in a wordpress site. lets ...
1
vote
1answer
1k views

Display posts with a start OR end date later than current date

I'm working with an upcoming events list. I create a custom post type, with a custom field: [event_start_date]. I also have some multiday extension events, defined by an additional custom field: ...
1
vote
1answer
133 views

Post Submission from frontend with custom field isn't working

I'm working with submitting posts from fronted which has some custom fields. I used shortcode API to use the form in any page/post. The code should be found bellow. But after submitting the form, ...
4
votes
2answers
2k views

Drag-and-drop “Panels”-style visual layout editor?

I'm a combination Drupal and WordPress developer and have recently started playing with Drupal's Panels module -- which allows you to create flexible layouts and drop content blocks (The Drupal ...
0
votes
1answer
362 views

How to add custom menu item on plugin activation?

When my plugin is activated, I would like to add a new menu item. Here is my code: class My_Plugin { function __construct() { register_activation_hook(__FILE__, array($this, 'install')); } ...
1
vote
1answer
525 views

display posts from specific category on a page , in thematic child theme?

i have a blog page template , i need to make it display posts from specific category called news this is the template , i use thematic framework child theme <?php /** * Template Name: Blog * * ...
0
votes
1answer
170 views

Hierarchical gallery

I want several galleries, every gallery containing several images. What is the proper way to do this two-level structure? I'd make every element of each gallery a post.
2
votes
0answers
269 views

How to let a user choose an authors and save it to the database?

I have a multi-author Wordpress site which reads different rss feeds and posts them to my page. I was wondering if it is possible to make a code that would provide an opportunity to registered user ...
3
votes
1answer
4k views

Wordpress Subdomain MultiSite on localhost XAMPP on :8080 with IIS taking port 80

I currently have Windows 7 , 64 bit on which I am running an IIS on localhost:80 and I installed XAMPP on localhost:8080. I have 15 individual wordpress sites but now i need a subdomain multisite ...
-2
votes
1answer
623 views

Hiding wp-config.php via .htaccess on an install installed in another directory?

Say my wordpress install is here, example.com/wp/ but my .htaccess is in example.com, am I ok with <Files wp-config.php> Order Allow,Deny Deny from all </Files> or do I need to ...
-3
votes
1answer
77 views

What does the output of this plugin mean? [closed]

I just tried to compress a file and am not sure if it worked or not. The plugin I am using gave me the following results: adding: wp-includes/js/tinymce/plugins/wpeditimage/editimage.html (deflated ...
0
votes
1answer
1k views

Plugin options will not save in database

I'm not sure what's happening here, since this has worked in another plugin I've created. I'm simply trying to store data in the options table. Here is the code I'm using: function on_myplugin_start ...
3
votes
1answer
351 views

Social Media Links on homepage - within posts/post loop

On my WordPress site I've got a social sharing bar that I created myself. Here's a picture of the social sharing bar: http://d.pr/i/ucSG - I have the social sharing links included within 'index.php' ...
5
votes
2answers
3k views

do_shortcode() within Admin Page

I'm using a few plugins that have shortcodes ... however, instead of creating a public page for the content, I've created some new pages within the admin using add_menu_page and I need to know how to ...
0
votes
1answer
1k views

Trying to load content of a post via AJAX

OK I'm trying to load content of a post via AJAX. So here is the functions.php part wp_localize_script('ajax-script', 'ajax_object', array('url' => $blogurl,'path' => $path,'ajaxurl' => ...
0
votes
1answer
454 views

populate select options from extra mysql table data

hi guys i am trying to populate a select element with options from the data in one of my sql tables heres what i have so far: <? $SQL = "SELECT * FROM pt_country ORDER BY name"; $rs = ...
2
votes
0answers
98 views

Oauth user Authorisation

I work with Oauth 1. I want when the user enters the admin page of my plugin, it is redirected to the site should perform authorization and come back on my page but it does not work ...
0
votes
2answers
287 views

How can I edit pages from my local environment?

Is there any to edit and/or create wordpress pages from my local environment? Or shall I use the wordpress editor no matter what?
0
votes
1answer
352 views

Getting Duplicate Posts on Home Page with Widget Added Between Posts

I'm trying to add a widget area in between posts on the home page. I got them to show right where I want them, after the first post. The problem is that the first two posts are duplicated. The same ...
0
votes
1answer
72 views

I want to add a tax-ID field in registration form and upon submission, perform a lookup by tax-ID

I want to allow visitors to register to my site. I want to add tax ID field in the form. Upon submission, I want to check if the user belongs to a list (which has been imported in a custom table)and ...
2
votes
1answer
2k views

How to use wp_nonce_url() in a link?

I am creating a plugin to display all posts from all custom post type. It is something like in edit.php, but instead of displaying single post type,I would like to display all posts in one page from ...
0
votes
1answer
143 views

How to display posts list on my plugin page?

Currently, I makes a plugin, and I want to display some post in admin submenu, my url looks like wp-admin/admin.php?page=mypluginpage how to display posts list on my plugin page? it's possible or ...
0
votes
2answers
334 views

Sliding pages + wordpress [closed]

do you have any idea how to achieve such effect with wordpress? http://www.papajastudio.pl/ http://soulwire.co.uk/ I mean the navigation. i want to have simple cms to edit website content + such ...
0
votes
2answers
507 views

permalink error when modifying sanitize_title_with_dashes function

By default, wordpress remove accents and weird characters to generate post_name in wp_posts table. This post_name is used when we change the permalink structure to /%postname%/ or some similar ...
0
votes
1answer
3k views

how to store wordpress loop in array?

I am working on a site. This site has a built in layout organize that uses a switch statement to organize data on a page. I want to use that to organize the homepage posts. Right now, there are 4 ...
6
votes
2answers
23k views

How to get an array of post data from wp_query result?

When run a query with WP_Query method, I got an object. I understand that I can then do the loop to display stuffs. But, my goal is not to display anything, instead, I want to get some post data by ...
0
votes
1answer
232 views

Is wp_reset_postdata always necessary?

After run a query $posts = (array)new WP_Query($args); I use this data to do some calculation on post meta. I didn't display the posts. Do I still need to use wp_reset_postdata after the query?
0
votes
1answer
75 views

WXR XML import is stripping php tags that I need to keep

When I import my WXR XML file it appears that wp_insert_post (or another function) is applying filters to strip php tags that I need to keep in my content. I have searched the various wp-include php ...
1
vote
1answer
905 views

wp_get_attachment_metadata returns false with add_action() 'add_attachment' hook

With the following code in functions.php - wp_get_attachment_metadata() returns false and or empty. Perhaps I am attempting to use wp_get_attachment_metadata() before it's ready? As some tests have ...
1
vote
0answers
317 views

Front-End Custom Taxonomy Tag Select

The theme I am currently using features a front-end dashboard with posting and post editing, but the pre-existing submission form currently lacks a field to select one or more custom taxonomy tags ...
0
votes
2answers
157 views

How to redirect from one WP site to another

I want to set it up so when you click on a tab on my one site it redirects you to my other site. I've tried every code I can think of and nothing seems to work. Please help.
0
votes
1answer
269 views

Trying to change featured image from 180x180 to full width on home page

Right now my theme puts a 180x180 square image to the left of the title on the home page for each blog post. I'd like to change that to be full width of the content area and below the title. I'm using ...

15 30 50 per page