Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

0
votes
0answers
12 views

List ads with a special custom meta name

Actually we have 3 blocks: New Ads / Popular Ads / Premium Ads. My question; if I would like to add a new Ad that lists all Ads with a custom meta name cp_annonceur == professionnal Could you suggest ...
0
votes
1answer
32 views

Replace code in plugin template

In plugin, I have following code in function: $return_string .= '<li class="wpc-category ' . $class . '"><a href="'. get_option('catalogue_page_url') .'">All ...
1
vote
0answers
30 views

Add a custom meta box in the post options that loads some html code in the header

I run a blog that is built in the format - Logo - Nav Large Image + Email Optin Form Content / Sidebar Footer Now I want the large image and email opt in form to be optional. Right now, what I ...
0
votes
1answer
34 views

Creating a search with tag variable also added for more detailed results

Wordpress search results is definately not the best indexing and search function we have seen.. If adding multiple tag variables in the search in order to get a more precise result work? For example: ...
0
votes
0answers
20 views

I'd like to move the Widgets Panel to the bottom of the list in Customizer

I'd prefer to have the 'new' Widgets Section/Panel (that extends to the widget areas) drop down to the bottom of list in Customizer. I've tried: $wp_customize->get_panel('widgets')->priority = ...
0
votes
1answer
38 views

Custom post types related to same custom post type?

I have custom post types product. I want to create related products from same custom post type (product). The user should be able to select posts (products) just as a user selects a category(or more) ...
0
votes
0answers
26 views

How to display a custom built field on wordpress default gallery

I created a custom field for the media I can upload on my wordpress website, by adding this code to functions.php: /** * Adding a "Copyright" field to the media uploader $form_fields array */ ...
0
votes
2answers
79 views

Wordpress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?

If I use on my Wordpress 4.0 the beautiful playlist shortcode I don't see the famous "Next" and "Prev" icons, but only this code in my Html code: <div class="wp-playlist-next"></div> and ...
0
votes
0answers
21 views

Display the nav menu for a particular page id

Say that I have the id of a page that is in the wp_nav_menu() I would like to show the wp_nav_menu() for that particular page. Is that possible? I can use wp_get_nav_menu_items() to get all items for ...
0
votes
1answer
25 views

Warning: Creating default object… when altering Customize panels

I'm trying to move my theme's [only] widget area outside of WP 4.0's nested "Widgets" panel by doing the following: $footer_widgets_section = $wp_customize->get_section( ...
0
votes
0answers
30 views

Restrict my pages from public

In my site I want to restrict some pages from public. How can I do this? example : www.xyz.com/members This pages only access when the user is log in but now its access public also using coping ...
0
votes
1answer
97 views

Menu is not visible in appearance

I have added following code to my function.php function register_my_menu() { register_nav_menu('header-menu',__( 'Menu' )); } add_action( 'init', 'register_my_menu' ); And here is my code where ...
0
votes
0answers
96 views

Editor/TinyMCE - change double enter key to <br /> and single enter to nothing

I have learned over the last year on Stack Overflow that people here prefer I give all details in the beginning instead of answering 12 comments worth of this stuff later. EDIT: If you don't want to ...
0
votes
2answers
43 views

A truely custom login page?

I don't want to use a plugin for this one and i would like to know how i can use a custom form for WP login. I made a form with bootstrap and i added the form action and two hidden fields but it ...
0
votes
0answers
19 views

Have the plugin completely render a page

I'm working on a plugin that uses pretty links by using rewrite rules like so: add_rewrite_rule( $slug . '/email/([^/]*)/?', 'index.php?pagename=' . $slug . ...
0
votes
1answer
32 views

Insert a field with PREG_REPLACE – strange behaviour

I'm trying to insert a custom field (from the Advanced Custom Fields plugin), and I need to place it within a div which I'm wrapping around an img, right before the img-tag. So basically this is the ...
0
votes
0answers
25 views

Wordpress Create pages on theme activation - add child pages using this function

I am using this function to add new pages on theme activation: /************************************************* ** Add home page *************************************************/ if ...
1
vote
2answers
39 views

Make blog secret during design construction

I am a n00b at wordpress. I'd like my blog to be secret while I finish the design. How do I do this? Thank you!
0
votes
0answers
60 views

wpdb custom tables without plugin

I am using custom tables, with $wpdb, trying to perform basic queries at the moment. I can't find anything on manually creating tables then using them with $wpdb, everything is plugin related. I ...
0
votes
1answer
18 views

Edit specific text on a static page

I'm kinda stuck with my Wordpress development. I must say, I'm a noob at this right now but trying to get more knowledge of this. In Wordpress admin, there is this text editor for editing the content ...
0
votes
2answers
68 views

Displaying One Custom Post Type's Content On Single Post of Another Custom Post Type

I'm currently building a college football blog and I have 2 custom post types: conference and team. Each conference post type will be a horizontal list consisting of each teams' logo and will be ...
0
votes
1answer
70 views

How to use PHP code with wordpress page

new user to WP. I am dynamically creating HTML tables with SQL data in my PHP. WordPress pages do not allow PHP code, and I've been hounded by individuals not to use a PHP plugin due to security ...
1
vote
1answer
42 views

How do i add custom fields to my themes template file?

I am using 4 custom fields and display the custom fields in my theme page by $quote_text_1 = get_post_meta($post->ID, 'quote_text_1', true); $quote_text_1_author = get_post_meta($post->ID, ...
-1
votes
2answers
28 views

Is there a way to have information on one page automatically feed into another? [closed]

Specifically, I have a page that lists events that happen each week on Tuesdays and Saturdays. I want these events, posted to this page, to then go onto two separate pages - one just showing the ...
0
votes
1answer
132 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 ...
0
votes
1answer
52 views

How to modify specific parts of a post content in WordPress

I'm trying to insert some custom code in each post in Wordpress, provided that it complies wit certain conditions. My problem is that the content needs to be added in an specific location that is not ...
0
votes
1answer
59 views

Add date under slider/grid featured content

I'd like to add post date under slider/grid text (which is category+Title) in my twenty fourteen wordpress child theme. Is it possible?
0
votes
0answers
52 views

WP_Customize_Image_Control and selecting from library?

I am adding some theme options, one of which is an image option. $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, ...
0
votes
0answers
34 views

Show WP content on different PHP Sites

we are about to start developing a big dynamic web project (Probably on ZF2) which will have some modules&tabs to act as CMS module (displaying news, galleries, posts etc). Let's assume we have ...
0
votes
2answers
5k views

Custom Facebook share button with custom title,url,image in wordpress

I know there may be many such question in stackoverflow . but i am not getting solution what i want i am using wordpress. In my all post page there is share button ( via addthis plugin ) but what ...
0
votes
0answers
30 views

Custom register and login page for Wordpress [duplicate]

i have 2 custom page template name: custom-login-page.php and custom-register-page.php I creat 2 page in wordpress using these 2 page template and try to login and register it, it' work. Problem is i ...
0
votes
0answers
36 views

Get Tags get_terms() - by user->ID ?

Is it possible to get tags for a specific user ID, i mean i want to get the tags list on author page where i want list the tags the author used to make his/her posts only - not want to get the full ...
0
votes
0answers
29 views

Show Custom Field

i am using WCK - Custom Fields and Custom Post Types Creator. I am have code for show image. <?php $my_meta = get_post_meta( $post->ID, 'my_meta_name', true ); if( !empty( ...
0
votes
2answers
66 views

How to create a custom Wordpress front page

I want to create a custom front page for a Wordpress site, which will have an image, some text, an embedded login form, and a metaslider slider, and nothing else (no menu, no sidebar, no footer). ...
1
vote
1answer
101 views

Convert an theme options page to use in customize.php also?

I have developed a theme options page which is a submenu page of appearance. But now i like to know how what i need to do so the theme options are also editable in the theme->customize interface. ...
0
votes
1answer
50 views

Add custom objects/entities to Wordpress

(I have some experience creating Wordpress themes but no experience in extending Wordpress functionality. I'm sure this must be a very common question, but I don't know how to search for the answer. ...
1
vote
0answers
61 views

Lost password empty field error redirect to custom login

I'm having trouble with a custom login/lost password form on a site I'm building. The site is completely password protected. I have a custom login page and I'm using 'wp_login_failed' and ...
1
vote
1answer
43 views

How to add custom classes to more than one separate menu's a link in wordpress?

Here is a link to my website: website I have placed the following code to this document in /wp-includes/nav-menu-template.php Towards the end of the code are several lines that start with ...
1
vote
1answer
38 views

Adding an email column to a Custom Post Types Admin Screen?

I am trying to add a column to my Custom Post Type Admin Screen that will show the author's email address. Any advice for novice coders (such as myself) that describe how to accomplish this? I've come ...
0
votes
1answer
43 views

Add code to header based on category for specific posts?

Hello all! I'm trying to add as you'll see in the image attached a small huffington post icon and accompanying text to some posts on my blog. I'd like to set up a category "Huffington Post" and when ...
0
votes
0answers
18 views

Removing WP-Login inputs

I'm building a passive captcha system for my WP sites, and I'm attempting to remove the inputs (username, password, submit) from my standard WP-Login page via php hooks; they'll be replaced via jQuery ...
0
votes
0answers
19 views

Best way to define a database with product codes and back-end support?

First let me explain what my wanted situation is: I have a WordPress site where I want the Admin to have access to about 10.000 "product keys". These codes will be inserted in a database of some sort ...
0
votes
0answers
11 views

Plugin update without overwriting the functionality [duplicate]

I have installed some plugins with my WordPress site, some time i modify a lot in the (.css or .php) files of the plugin to get the results i want after that i can use them with more than one site, so ...
0
votes
0answers
19 views

How to Make Multiple Pages Display Previous 2 out of 10 Next

I'm using wp_link_pages to split my post into multiple pages. I want to achieve something like this. Please help me with the exact codes. Thank you so much in advance. Here's my code so far ...
1
vote
1answer
65 views

How do you create dynamic customised sections in Wordpress?

I am very new to Wordpress and I just like to ask a fundamental question about its structure. I understand that Wordpress uses different files as templates for different sections or types of pages. ...
2
votes
1answer
37 views

Default WP search excluding specific characters, is it possible?

I would like to know if it possible to customize the default search module of Wordpress. I've a website dealing with teams and teams' news. Some of those teams has their names written like this ...
0
votes
1answer
28 views

Include post on external custom site

How do I include single post ( I mean image, title, and a bit of text ) on my own custom site? I have wp in subdirectory and I just want to make "Recent article" box on my site. I was looking for it 2 ...
0
votes
1answer
77 views

Can I use $wpdb for my custom tables in the WordPress database?

I am building a custom application based on WordPress. I have my custom tables in the WP database. Can I use $wpdb to work with them, or is that class solely for the WP related tables? For example, ...
1
vote
1answer
287 views

Filter posts by custom taxonomy terms

I am trying to filter posts by author. The 'post_author' is a custom taxonomy and I've included it in my args and posts are showing with the linked author names but when I click on the author name ...
0
votes
0answers
43 views

How do I add a class to every menu item automatically in a nav menu?

At the moment I'm adding a button element around the menu anchors using this markup: $defaults = array( 'theme_location' => '', 'menu' => 'main-nav', 'container' ...