0
votes
2answers
23 views

Sending HTML email with attachment with wp_mail()

This one should be easy, but I can't figure it out. I want to send an email that is HTML formatted, but also has an attachment. The attachment is being sent correctly, but the message is delivered as ...
0
votes
1answer
23 views

Get_template_part inside filter?

Is it possible to remove gallery from content but in its place do get_template_part('content-gallery'); ? I have this piece of code which removes gallery from post but I am inserting ...
2
votes
3answers
103 views

How can I limit the length of the previous/next posts in my Wordpress Theme?

I am using the following code to show next/previous posts in my wordpress theme. <?php previous_post_link('<span class="left">&larr; %link</span>'); next_post_link('<span ...
-2
votes
0answers
14 views

@font-face not working? [on hold]

Currently having some trouble getting some custom fonts to work on my site via the css @font-face class(?). The method I'm using has worked several times before. Also curious, is that when I try on my ...
0
votes
0answers
14 views

Color picker for posts and pages

I want to add color picker to wordpress posts and pages at admin menu. I have this code for color picker: add_action( 'admin_enqueue_scripts', 'add_color_picker' ); function add_color_picker( $hook ...
-2
votes
1answer
14 views

WordPress contact form

I am currently using contact form that came with Enfold theme on this website OneWebX Free Quote This form is good but does not look cool. The text box size do not vary much. And it cannot upload ...
0
votes
0answers
9 views

Add menu page on multisite

I'm trying add menu page in multisite (settings will be global for all blogs). Current code created in plugin and activated in network function wpdocs_register_my_custom_menu_page() { ...
0
votes
0answers
11 views

Custom fields for media library images

I want to create custom fields for wordpress admin media images. Can you suggest some plugin or easy way to do that? than i want to get that fields at image.php
0
votes
1answer
34 views

Add URL parameter to all internal links using a specific theme

I got stuck with some modifications and maybe someone could give me some help. What am I doing I use the multiple theme plugin to switch themes for my WordPress project. To switch between the ...
0
votes
1answer
19 views

Building own plugin cache when using external API

I've built a plugin using a third party API in order to receive data which will be shown on the frontend. Until now I've stored the data by using transients. When someone visits a single post/page ...
4
votes
1answer
41 views

Proper unit testing in WordPress

There are different threads available for Unit Testing in WordPress. As far as concern, there should be a proper unit testing for every piece of customization done in WordPress. I have checked couple ...
0
votes
1answer
23 views

After ajax image is outside the `<a>` tag

I am loading some content via AJAX, and basically I have this line: $storage .= '<a href='.get_permalink($id).'><img src="'.$image['url'].'" /></a>'; Which gets rendered as: ...
0
votes
1answer
15 views

Could not get attachment using wp_mail

I am trying to create a form which can be sent by users with an attachment. The form works fine and sending the emails when it is submitted but without the attached file. my form is : <form ...
-7
votes
0answers
39 views

Is there any plugin/theme in WordPress which enables users to create their own shops [on hold]

Is there any plugin/theme in WordPress which enables users to create their own shops. Where they can list their products, just like AliBaba. Please help.
-4
votes
1answer
36 views

is it possible to create cart functionality without woocommerce?

I was wondering about how I can create custom cart functionality without installing WooCommerce plugin. Is it possible?
0
votes
0answers
16 views

Registering and assigning Custom Taxonomy directly through SQL

I'm running a PHP script that pulls property listing data from a RETS server and inserts the listing date into the WordPress database directly with SQL queries. I'm not using any WordPress functions ...
0
votes
0answers
19 views

get_object_taxonomies() returns null for custom post type

can any body tell me what will be the issue in function get_object_taxonomies() which returns null for custom post type..... the function is given as function insert_city($term) { echo ...
3
votes
1answer
34 views

How to prevent redirection to max 2147483647 for larger values of the page query variable?

I've got an id which is 10101000003163 I set it to my href as "technical/10101000003163/" but WordPress redirects me to "technical/2147483647/" How can I stop WordPress from doing that? My rewrite ...
3
votes
2answers
37 views

How to get custom post meta using REST API

I am trying to create a REST APIs for my wordpress website which is used for facility listing using wordpress job manager plugin. I have registered my custom post , taxonomies in ...
0
votes
2answers
20 views

How to insert a local image with custom size

I am not very familiar with PHP yet but I am trying to build a Wordpress theme. In one of my theme files I simply want to insert an image (located at the theme directory /img/image.jpg) with a link ...
-2
votes
0answers
7 views

How do I 'side-align' 2 menus like mikedillard.com/blog (on a small screen width) [on hold]

I've tried changing everything to inline-block (which is appears to be the display of mikedillard.com/blog--when the menus collapse into the toggle-able button) But it keeps 'stacking' on different ...
3
votes
1answer
35 views

WordPress calls archive page instead of Custom Page Template

I have created a custom post type called "Projects". My permalinks settings is postname and I'd like to keep it that way. I created a page template named projects.php (Template Name: Projects) and ...
0
votes
0answers
14 views

Retrieving category pages from subcategory returns empty sets

I've a category overview page. It shows its subcategories. These subcategories have subsubcategories which are pages too. I'd like to retrieve those (title, permalink and excerpt) but so far my ...
0
votes
0answers
11 views

Why does my menu disappear if I set it to something other than '--Select--'?

Trying to style it - so that it has a drop-down toggle button. So I wanted to change the files. But the other menus - that would have child elements - don't play nice with the customizer. I'll ...
0
votes
0answers
25 views

Bootstrap Footer not displaying on mobile of wordpress site

This hasn't happened to me before but I'm working on finishing a wordpress site and for some reason that I can't understand, the footer won't display on my iPhone or iPad. When I resize on chrome or ...
0
votes
0answers
18 views

Fastest way to load plugin and store and retrieve settings?

For two plug-ins I made I think it's important that they are as fast as can be when loaded at the front-end side because both insert scripts into the public html source. For this it hooks into almost ...
-3
votes
1answer
10 views

Add variable product_attributes to composite product after success checkout

WordPress + WooCommerce webshop has variable and composite products (for example polo [variable] and design [composite]), users buy both of them (but they think they order only one product [polo with ...
1
vote
1answer
16 views

Categorizing Page Templates

I'm wondering if it's in any way possible to categorize page templates and display them in the dropdown by category. In other words, having page templates defined as being for parent pages that show ...
2
votes
2answers
101 views

esc before saving or before displaying does it matter?

In a lot of how to create a custom meta box tutorials, when saving data, i.e., update_post_meta the data is escaped: update_post_meta( $post_id, 'city', esc_attr( ucwords( $_POST['city'] ) ) ); ...
0
votes
1answer
22 views

Is It Possible to Use the Wordpress Settings API Without Having the Settings put into a Table Tag?

It seems that when using the Wordpress Settings API that all settings are placed inside a table with a class=form-table. Is it possible to override that? That is to say, to simply have the settings ...
-1
votes
0answers
18 views

question over the counter share [on hold]

I need to bring in the category for each record number of share facebook I put this code: <?php function getFacebookDetails($url){ $rest_url = ...
-4
votes
1answer
15 views

Wordpress adding style display none to body tag [on hold]

I have been searching for a solution to this issue, but somehow, I am unable to come up with any results with the same issue, either here or other sites. I have turned my pure html and .less site ...
0
votes
1answer
26 views

WP_Query with multiple orderby NOT working with ASC and DESC, what's wrong?

I have a query with multiple orderby params in a custom page that I am having difficulty getting to work. The query is to return posts with either tag-AAA or tag-BBB tags. And I'd like to sort it ...
0
votes
1answer
19 views

Get posts of an specific term of a custom taxonomy

I'm new at Wordpress development and I was wondering (and trying to solve this) for a long time, so maybe you can help me. My WP use a custom post type named Products. And there is a custom taxonomy ...
0
votes
1answer
13 views

Hook to change Author Info

Is there a hook or filter that will allow me to change the author of a post when someone views the page? Thanks!
-1
votes
2answers
32 views

Exclude duplicated $sticky post from combined loop content

Since Wordpress sticky posts feature allow the post checked as sticky in post publish panel to be placed at the top of the front page of posts. I was also intended to style the sticky post differently ...
0
votes
0answers
17 views

Change Header menu links depending on which page you opened too?

Let's say in my Menus there's; Home, Movies, Language, Genre When a user select it's language, the "Genre" menu links change with the language selected. For Example if I Select French in "Language" ...
0
votes
0answers
10 views

INNODB Supports transactions, row-level locking, and foreign keys

When I try to create a table for a plugin (that was dropped in the past) I get the error: #1005 - Can't create table 'database_db.wordpress_popularpostssummary' (errno: -1) (Details…) And the ...
0
votes
0answers
35 views

Including wordpress core in php script impact on load speed

I'm using require('wp-load.php'); to be able to use wordpress's functions outside of wordpress. My question is, how much impact does this have on performance? Will it like double the load or ...
0
votes
0answers
13 views

Table showing data from posts

I have set up a custom post type, with several custom fields to store individual pieces of data. Is there a way to display the data from the posts in a table? Ideally I'd be able to implement search ...
-3
votes
0answers
17 views

Want to customise get_price_html() [on hold]

I am new to woocommerce and i want to customise get_price_html() but i didn't get the clue to customise it,actually i want to edit product price which is given in the format below: Retail Price : Rs. ...
0
votes
2answers
20 views

How to update an existing table while updating plugin?

I have added a new field (time_last_seen) in my plugin (v1.1) table then uploaded my plugin as version 1.2 to wordpress svn repository. When I update my plugin from admin panel, it is not creating ...
0
votes
1answer
22 views

$wpdb->delete column values IN ARRAY()?

I am wondering if this is possible? $wpdb->delete( 'table_name', array('id' => array(1, 2, 3)), array('%d') ); So, in this situation, it should remove 3 rows at once, and call the ...
-1
votes
1answer
14 views

How to re-active WordPress table javascript after ajax?

The new version of WordPress is using responsive table. But after the page was requested via ajax and table rendered into html page the responsive function won't work anymore. As you see in the ...
4
votes
0answers
28 views

Problem with Hebrew characters in username

I wrote a plugin to enable hebrew characters in usernames. This is the full code: add_filter ('sanitize_user', 'hu_sanitize_user', 10, 3); //Overrides the Wordpress sanitize_user filter to allow ...
1
vote
0answers
17 views

Password field (and confirmation) showing up twice on registration

Before I state my problem, I'd like to explain what I've been doing. I am trying to find a membership plugin to work with my site. I only have one registration (free membership) needed. I have been ...
2
votes
2answers
35 views

_wp_page_template to dynamically use template

I'm wondering if it is at all possible to set display a page template chosen by the user within the context of a query_posts using get_template_part. In other words, I have set up a page template to ...
1
vote
0answers
25 views

Dynamically add styles to WP TinyMCE editor

I want to add custom styles to Wordpress using dynamic arrays. My question is how can I add the two arrays to the style_formats array within the 'my_mce_before_init_insert_formats' function ...
-1
votes
1answer
11 views

How to add attribute in menu code

I want to make a menu with hover animations. My HTML syntax looks like this: <ul class="menus"> <li class="current"><a href="#" data-hover="Home">Home</a></li> ...
-4
votes
1answer
8 views

Modifying 'post_content' on 'wp_posts' but post not getting updated [on hold]

I had to make some changes in some of my wordpress posts and I thought about making them directly on the database. I opened phpMyAdmind and I went to 'wp_posts' and found one of the posts, clicked ...

15 30 50 per page