Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
0answers
14 views

how to add a menu page with elements?

I have this example plugin for creating a page in the admin panel: add_action( 'admin_menu', 'register_my_custom_menu_page' ); function register_my_custom_menu_page(){ add_menu_page( 'custom ...
0
votes
0answers
25 views

2 different templates for 1 query

I have a working query with some custom meta fields (among others ACF Gallery field) which displays news on "News" page. I have also second page named "Gallery" which is quering posts by gallery ...
0
votes
0answers
25 views

Is there a hack for using is_page() within the function.php file?

I've created a function in my functions.php that's called when the submit_form event is fired on the front-end. Here is the code: add_action( "wp_ajax_nopriv_submit_form", "submit_my_form" ); ...
0
votes
0answers
12 views

How to upload theme: Option Tree WordPress Theme Check Error

I am having a little problem uploading my theme to wordpress as the initial theme check fails with the below error.. I have integrated Option Tree into my team. But WordPress doesn't accept until the ...
0
votes
0answers
12 views

Wordpress customizer not saving any changes

I have been experiencing an issue, whenever I try to make changes in my Theme Customizer it shows fine in the live preview but when I open the website the changes are not visible, it looks like ...
0
votes
0answers
16 views

Display older custom field in post loop from same category and same key?

This my first post, please help :D I want to display custom field from older post with same category and same key. Example in post loop: Post 1 <strong>(category Tech)</strong> - ...
0
votes
0answers
8 views

Add custom attributes to the individual blog table in multisite

I am adding custom product attribute to a multisite network. Currently the added custom attributes save on the default WordPress database. I have to store the data in corresponding blog database table ...
0
votes
0answers
11 views

How to separate website pages from the home page and make custom?

I have installed a theme on my wordpress and published some new links to my navigation. Until now i have my main "home page" customized and i want to costomize the next page "our products". But all my ...
0
votes
0answers
10 views

Advanced Layout through TinyMCE

I am trying to get through this problem with advanced layout, I've found here which works great if all of my pages had the same design. What I am trying to achieve is being able to have a different ...
0
votes
0answers
18 views

How to add custom sidebar on each single page?

I'm creating a book review site. I wanted the site with two columns (65% 35% respectively). On the left side as usual review of the books and other stuff should go, so no worries with that part. On ...
0
votes
0answers
10 views

How to add custom section in backend which will display information on frontend?

I'm newbie in wordpress so please dont judge. So what I want : I have post div like 1:featured image 2:title 3:category - in one div. I want to add one more custom section like one more "title" ...
0
votes
0answers
15 views

show 404 page for url which contains unexisting post id

I created custom urls rewrite example : domain.com/post_id/image/image_name/ with rewrite rule it shows likes this : Domain.com/125/image/my-car-image/ it work fine but i want to show 404 not ...
0
votes
0answers
20 views

Image disapear in theme customization settings for zerif lite child theme

I have added theme customization settings for changing logo. I can successfully change image in theme customization. But when I change site url, it disappear from settings. I checked on site for ...
0
votes
0answers
17 views

Custom post types display pending posts without login

I am having an issue in a custom post type ('place'). I can view the posts like "http://www.example.com/?post_type=place&p=9454" while i am logged in as any user from the front end.But i cant view ...
0
votes
0answers
19 views

loop all posts by category

I have custom post type and taxonomy. post_type = product taxonomy = Products 2 level of taxonomy. Living room -Sample tax under living room -more -more Kitchen -sample tax under Kitchen -more -more ...
0
votes
0answers
16 views

Create front-end input field based on search - auto-complete - select?

I'm trying to create a front-end category input field with auto-complete (search - auto-complete - select). I have around 35000 categories. What's the best way to do it, without slowing down page load ...
0
votes
0answers
9 views

Perform a 'refresh' transport or open the site in new tab, after saving the theme in Customizer

Is it possible to perform a 'refresh' transport after saving the theme in Customizer? Can you help me about this? If it is not, then my plan B is just to open the site in new tab after saving the ...
0
votes
0answers
6 views

Redirect when “Log on to reply” is clicked

I have seen this question in the forums and it has been answered, but it is not working for me. I created a new page for a custom login form and managed to get it to show up almost everywhere when ...
0
votes
0answers
14 views

How to appoint different users to different pages?

I am having this problem, i need to separate subscribers(all one user type) into two different groups with access to different pages, pages restricted to one group is available to another though they ...
0
votes
0answers
54 views

Creating custom database table with crud operation

I am new to wordpress. I going to work on one project that is having 400 pages. Out of that only 3-4 pages are the dynamic pages and rest are the static pages. What I meant to say by this, most of ...
0
votes
0answers
13 views

Link a page type with custom WP_query variable

Basicly i want the URL : http://localhost/brands/[brand-name] to be addressed to a page template single-brandname where "[brand-name]" is a custom variable introduced in permalink. The Main Brands ...
0
votes
0answers
20 views

pre_get_posts with custom SQL

I have a scenario where there is a custom form on an archive page. I want to use pre_get_posts to modify what is displayed on the archive page, and show the paginated results. The issue is I first ...
0
votes
0answers
9 views

Yoast SEO Plugin displays “Page not found” for all custom page templates even though they work

I have created custom single pages. By custom page i mean mypage.php and this page will then display custom content. The pages all work perfectly fine and i have hooks in place to add a custom title. ...
0
votes
0answers
16 views

How To Display Admin Toolbar On Custom Template

I am trying to get the admin toolbar to display on a custom page. I am using a custom php file for this. The basic structure of the page is like this and this will display the basic structure of my ...
0
votes
0answers
15 views

Modify default widgets

i want to add a class to the link inside the footer widgets. how can i do that ? I found a way to add a class to the widget it self but not to the link inside of it ! The concerned widget are ...
0
votes
0answers
22 views

Change post template the proper way

I'm trying to create an option on edit posts screen (backend) to select different post template based the selection and I need your opinions guys if that is the proper way. Here is what I've tried so ...
0
votes
0answers
10 views

Backend as to select combo

I wondered how I could do one thing in wp. I need to show X combo select a page, depending on the option chosen in the display select one thing or another in the next select something else ... etc. ...
0
votes
0answers
6 views

How to add images to widget instance from backend

I am working on a project which has content(no posts) and I want to give complete control to user to change and edit content from admin panel. I have created widget added fields to it but I don't know ...
0
votes
0answers
11 views

Add Custom Fields to Tags

I have been searching how to add custom fields to taxonomies, but all what I found (that works) is how to add custom fields to category (below is my code), but I dont know how to edit it to add custom ...
0
votes
0answers
18 views

Tag template pagination

I need to ask about how can i add pagination to my post tag template pages this is the code and link of the page http://ca.unitysofts.com/tag/fortnight-focus/ <?php get_header(); ...
0
votes
0answers
12 views

customizing wordpress theme slider with switch statement

i am working on an assignment for wordpress , i need help in following matter, im using wordpress today news theme, the link of my current work ca.unitysofts.com in upper three slider , while ...
0
votes
0answers
17 views

How To Add Custom Meta Field Select/Radio Box to Post List Bulk Edit Mode

How can you add a radio fieldset to a custom post-types post list bulk edit screen for a custom meta field? Please provide in depth code example and explanation and thanks in advance. The ...
0
votes
0answers
18 views

let users add multiple divs in static page

I'm pretty new to wordpress and I'm using twentytwelve as a theme. I've created a very simple custom template for some pages: <?php /* Template Name: New Test page*/ ?> <?php get_header(); ...
0
votes
0answers
57 views

Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn't work

I've added to the normal WordPress gallery popup (when clicking "Add Media" in the WordPress editor), in order to allow my custom gallery type to be selected (which interacts with / uses the main ...
0
votes
0answers
12 views

WP Query for newest post of each taxonomie of a custom post type

I'm trying and googleing since 2 days, but cant figure out how I can display my 8 needed posts. Details about my structure: I'v created an custom post type "projects" where all the posts about ...
0
votes
0answers
17 views

Show content if deadline is passed

I am using Date Custom Field in a scholarships information website and using this code to get scholarship deadline. I just want to show two words "Applications closed" if the application date has been ...
0
votes
0answers
13 views

Get adjacent post data, ordering by custom field values (by Wp-query?)

I want to build a custom version of the adjacent-function of wordpress post. I have two custom field values for each post, my layout is the following: metafield1 value 1 & metafield2 value 1 | ...
0
votes
0answers
79 views

echo value from 'select' field type into page template using cmb2?

I'm using CMB2 plugin to add metaboxes into a custom post type. I'm adding the additional metaboxes via functions.php onto child theme. It may worth to mention that parent theme/custom post already ...
0
votes
0answers
15 views

Products with Batch (Lot) Numbers

We are developing a site to sell products which are manufactured in batches (lots) and which have expiry dates. Is there a good (best) way to handle such products so that the batch number(s) and ...
0
votes
0answers
14 views

Creating plugin - beginner level

I'm trying to create my first plugin and i don't know many things. I created an admin menu with 3 submenus. In first submenu i have a form like <form method="get" enctype="multipart/form-data" ...
0
votes
0answers
43 views

Multiple Loop resulting in duplicate Posts

This code results in a display of a category title and one post below, it loops through every category in a custom taxonomy, works but the posts are duplicated on page/2/ if I type in that URL, I ...
0
votes
0answers
18 views

Auto overwrite: Plugin edits not sticking

I am trying to edit a plugin called "Calls to Action" to add personal functionality and remove all the extra stuff I don't need; and WordPress or the plugin keeps overwriting my edits. I have even ...
0
votes
0answers
17 views

Custom Field value to

I don't know how I could solve this problem. I'm importing a csv file and this contains also an imglink (external) and it will creat a post draft for me. What I want to achieve is that the imagelink ...
0
votes
0answers
16 views

is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript

Is there a predefined JavaScript function that can be use to check whether the site is being previewed in the Customizer which returns true if it is or false if it's not, just like what ...
0
votes
0answers
36 views

Pagination not working for custom category template and custom permalinks

I am using following code in category-20.php, for the pagination through ajax, which is working fine for the defaults permalinks. But when i change the permalinks to custom, then pagination doesn't ...
0
votes
0answers
11 views

Add field to the search box ¡

Hi I have a custom post type, and I want to add a field to the search form. For example a simple dropdown. I don't find any actions or filters. Anyone knows how can I add this field? Thanks a lot
0
votes
0answers
23 views

Best way to add custom code to pages in Wordpress

I've a question relating to Page templates in Wordpress. Firstly, I should point out that I'm about to undertake quite a large project for a friend of mine and I'm looking to to it in the best way ...
0
votes
0answers
38 views

Loading posts from another wordpress database on the same server

I've searched quite a while and found several solution but apparently I'm doing a lot of stuff wrong. I'm having 4 different Wordpress sites and need to load the latest 2 posts of each site. For ...
0
votes
0answers
17 views

wp_include_post in custom post with coustom field

I'm new in wordpress and my english are not good. I'm using Custom Post Type UI plugin to create a post type "Product" and Advanced Custom Fields plugin to create some custom fields like address. Now ...
0
votes
0answers
32 views

A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control

Are you familiar with the Customizer core $wp_customize->get_setting( 'header_textcolor' )? It will become available once you add_theme_support( 'custom-header' ). It have two controls, one is a ...