Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
0answers
4 views

Unable to differentiate between two categories under custom post type on single.php

I have created A custom post type as mentioned in my older question When I try to use get_the_category() function to retrieve the category of the post(if it is symphony or noir). It returns "Array". ...
0
votes
0answers
3 views

Show posts of one category only with Custom Taxonomy on single.php

I have created a custom post type named 14kgold. Under this I defined two categories: Symphony and Noir. Now I added items/ products to each category. When I open a product under one category i.e. ...
0
votes
1answer
48 views
+50

Edit admin post page

I have to customize the admin page where you edit the other pages "wp-admin/post.php". I have to add a lot of things, and delete others, change colors and add a custom menu to the top. I don't know ...
0
votes
1answer
18 views

same user role or copy the user role to be same as the other role

how do you make the user role "contributor" to be same as the user role "seller" by using functions.php I've tried user role editor, but it seems to be the dokan multivendor plugin has set only into ...
0
votes
1answer
625 views

Retrieve and display data from custom db table in admin area?

So, i'm having a bit of an issue with a plugin i'm developing, I wonder if anyone can shed any light on the situation, as many, MANY searches have come back with zero help. :-/ Basically, my plugin ...
0
votes
0answers
17 views

Wordpress checkbox slider

Using template Sparkling: https://colorlib.com/wp/themes/sparkling/ Here slider uses a category for displaying slides. Slider Code: function sparkling_featured_slider() { if ( is_front_page() ...
0
votes
1answer
5 views

Removing non native customizer settings from a child theme

For removing settings, controls and sections of the customizer, we can just simply use the remove methods like this: function remove_custom($wp_customize) { $wp_customize->remove_setting('id'); ...
0
votes
0answers
10 views

Customisation of Media Gallery behaviour

New to this forum so please be kind. I have built a website with a portfolio using themeco's The X Theme, each portfolio item has a media gallery of images. The default media gallery shows one main ...
0
votes
0answers
22 views

Show posts from all categories

I have a site with 5 different categories, each of them with a notices section. I would like also to have another section to see the latest notices from any category. So far, I figured out that I can ...
-1
votes
1answer
25 views

How to prevent page re-sizing for mobile browsers [on hold]

I want to prevent my page resizing for mobile browsers, How can I achieve this? My style.css is added below. */ /*---------------------------------------------------------------------------------*/ ...
0
votes
2answers
525 views

create single.php for specific category by category id

I'm trying to create template for specific category with id 1 for example. The template should be applied to all of the pages belongs to this category. So, it should be something like single-1.php. I ...
0
votes
2answers
507 views

How to add icon over specific thumb

I wanted to do the following, and I know its possible, but I don't know how. I'm looking at in_category, but it doesn't make to much sense. Basically what I want to do, for an example on my homepage, ...
0
votes
1answer
691 views

Right way to update widget on dynamic new input field

I have code to add an input field dynamicly in my theme. I have testd it, as a metabox and it works. But, not in a widget. First add and update, that codes work, but when I refresh page or try to ...
0
votes
2answers
21 views

How do I map two domains to the same wordpress installation?

I originally have the website working with: (example) www.domainoriginal.com But I want to have another domain (www.domainsecond.com) also use the same Wordpress installation. I have changed the A ...
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
1answer
12 views

Customize option - add two image uploader under same section

To add upload option, i added this code on function page: add_action( 'customize_register', 'custom_logo_uploader' ); function custom_logo_uploader($wp_customize) { ...
1
vote
2answers
453 views

Wordpress most popular post own code, per week

The plugin Most popular posts doesnt support WPML and therefor I have tried creating my own. I have found this tutorial in creating your own code for showing the most popular posts on my site. ...
0
votes
1answer
25 views

How to move menu next to left of the search box?

I use Woocommerce plugin and StoreFront theme to build my demo website at http://52.74.97.64/wordpress/ I want to move the current menu to another place - on the left next to the search box on the ...
0
votes
0answers
2 views

Using Woocommerce, what would be the best way to create a search form similar to the one in the following website?

http://dinarholidays.com/tour-and-transfer-only-airport/ (under "Airport Transfers") The results would be products within a "transfers" category.
0
votes
1answer
1k views

How Can I limit the visible part of the short-description on the Category page?

How Can I limit the visible part of the 'short description' in the Category Page? I found the code in theme/woocommerce/content-product.php, but whatever I try doesn't do a thing. <?php ...
0
votes
0answers
8 views

how to clear cache of checkout details for guest in woocommerce after certain time of inactiveness

In wooocommerce a guest shopping items (before loggin) and after that that person goes to checkout page. Now I've create checkout form in such a way that after selecting country from the dropdown it ...
0
votes
0answers
19 views

how to change shipping cost after changing the currency from “WooCommerce Currency Switcher” plugin

I'm developing a woocommerce wordpress shopping cart website, where I use "WooCommerce Currency Switcher" plugin for currency conversion. There are three currencies.. pound, dollar and euro in the ...
0
votes
0answers
6 views

My customizer's setting doesn't set to the default and needed to click the control's “Default” button before it'll be set

Here's my sample customizer's setting and control: $wp_customize->add_setting( 'themename_img', array( 'type' => 'theme_mod', 'default' => ...
0
votes
2answers
26 views

custom post with loading script per single post

I read many Q&As here on SO...(and elsewhere but they don't count...lol) I think I follow the rules of WP.org but still it does not load the scripts. Scenario: Custom template for post in Php: ...
0
votes
1answer
27 views

dbDelta not creating tables with composite keys

I've been trying to figure this one out for 3 days now, reading every reference on dbDelta I can find. My ultimate goal is to create a table of unique ad_id, ad_trigger pairs. This does not create a ...
0
votes
0answers
8 views

Custom Post messages in admin - for moved to bin/deleted msgs

I have used code from Set custom messages for post update/save for customising the messages of my custom post type so that they make sense to users and don't contain the word "post". However, I just ...
0
votes
0answers
11 views

Slider for loop elements

I've created boxes which take the content based on Advanced Custom Fields from a post in a loop. Live example here at the bottom: http://solutionsmvo.nazwa.pl/memoria/ I want those boxes to be in a ...
0
votes
1answer
10 views

Plugin to allow registered users to customize their layout [closed]

We are in the process of creating a resource website for developers and I would like there to be an element of personalization available to the end user. So if you are a python developer you can ...
3
votes
1answer
607 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
0
votes
1answer
20 views

How to add custom column to Custom post page list?

Image should explain what I am trying to accomplish. I have no idea how to do this, is anyone familiar with this sort of work? Custom event date will be a custom event meta box value that is part ...
0
votes
1answer
324 views

Rearrange elements outputted by comment_form()

I'm currently developing a custom theme from scratch. In the past week, I've been trying to change the order of the HTML elements output by the comment_form(). I basically don't know any PHP, and I ...
0
votes
2answers
712 views

Archive Page for Custom Post Type is not Working

I have registered a custom post type "tutorials" with the following snippet. <?php /* Template Name: Tutorial Archive */ get_header(); ?> <div id="content"> <div ...
0
votes
1answer
14 views

Changing layout with wp_customise

So I'm trying to build a conditional statement to display different layouts depending on the option selected. Having a bit of trouble. $wp_customize->add_setting('layout', array( 'default' ...
0
votes
1answer
1k views

Sticky menu for WP custom menubars

This seems simple, except that I am not able to figure it out. In a wordpress theme, how can I make a custom menubar below the header image stick at the top after scrolling down the page? Example ...
1
vote
1answer
616 views

Multiple keyword search

I have a custom search where I want to enter a keyword or phrase into the search box, and then by pressing enter it adds it to a 'search storage' (already coded, see below). Asume I have 3 posts, one ...
0
votes
1answer
29 views

Plugin does not create a custom table upon activation

I have a problem as the title says. My plugin does not create a custom table when it's activated. My code is: function bsp_create_update_table() { global $wpdb; //geting the acces to a wp tables ...
2
votes
1answer
404 views

Programmatically adding posts

I'm about to create parser which would be inserting new custom posts. So, it's pretty simple global $user_ID; $new_post = array( 'post_title' => 'My New Post', 'post_content' => 'Lorem ...
-4
votes
1answer
20 views

Wordpress Home page modification [on hold]

I have recently started using wordpress and currently i am using version 4.2.2..I am stuck at my home page ..I dont know how to remove that portion which i have highlited in the picture ...
0
votes
1answer
19 views

Best strategy for providing theme options using customizer

I am making a free distributable theme and I wish I could provide theme options in the best possible way. I have doubts (mostly about widgets) and sidebars. Here we go: Is it a good idea letting the ...
0
votes
1answer
27 views

How to customize a site hosted on wordpress.com locally [on hold]

I have a website on wordpress.com. Is there a way to download it to my localhost, customize it and then upload it back to wordpress.com? Thanks
0
votes
1answer
475 views

How can I output the custom fields wrapping with HTML

I am trying to publish custom fields created using the plugin "Advanced Custom fields". I am able to display them on posts and custom post types as raw output. But I want to wrap html around the ...
1
vote
0answers
10 views

Comments not nesed with custom template

I have a custom template for to show my comments. For some reason, there are not nested while looking in the back-end of Wordpress, I see that some comments have a parent. They are simply displayed ...
1
vote
1answer
25 views

TwentyFifteen: How can it show a different color on every post page?

I have made a child theme of TwentyFifteen. Am trying to set on styles.css of the child theme a specific color on every page or post. I tried somethin like that .post-id-no.id .hentry,.site-footer ...
0
votes
1answer
397 views

How to echo Widget Title in Custom Frontend-Template Box

I've created a custom Widget with the help of following code: // Creating the widget class wpb_widget extends WP_Widget { function __construct() { parent::__construct( // Base ID of ...
-1
votes
0answers
20 views

Custom animation coding on my theme [closed]

I'm developing a site for a client and want to adjust the level of animation on the intro page welcome elements. Here's the site in development: http://o8c.co.uk/red-star/ There is some animation ...
0
votes
0answers
17 views

Custom Walker Class menu with different ul class and role as the dropdown

I'm trying to replicate this output menu using the Walker Class <ul class="list-inline menu" role="menubar"> <li><a href="#project" class="item">WET project</a> <ul ...
0
votes
2answers
141 views

customize wordpress database error page

UPDATE Initially I suspected this was related to the Wordpress framework I'm using (Genesis) or to my child theme functionality, but turns out that's not the case as I was able to get this to work in ...
0
votes
1answer
56 views

Search a meta field for a value in all posts

I want to search a meta field for a value in all posts. Code below shows what I want to accomplish (I'm a WP and PHP beginner and can't manage to make it work by myself). If in meta field "voted_IP" ...
2
votes
1answer
86 views

How to add rewrite rules and pagination to retrieve attachments files?

I'm trying to list attachments based on different taxonomies. Right now it only work for the basic url (no pagination added). For example ...
7
votes
5answers
14k views

Remove wrapping div and ul from output of wp_nav_menu

I am using the new menu system of Wordpress, and here is the result of wp_nav_menu() <div class="menu-main-menu-container"> <ul id="menu-main-menu" class="menu"> <li ...