0
votes
0answers
2 views

Wordpress Local or webhost install? [on hold]

I am planning to build a website using wordpress, but I was wondering if I should install via a webhost or locally on my computer with MAMP? Pros? Cons? FYI: I did some research on the web but did ...
0
votes
0answers
4 views

How do I set a global variable to use in two separate functions?

So...here is part of my code for a plugin. I'm a newb of sorts so be kind. I've read up on global variables but I can't seem to get it to work and I've read you shouldn't use them anyway. So what ...
0
votes
0answers
7 views

Add a “NEW” banner to bottom of every new post [duplicate]

I'm working on http://juniorgoldreport.com The owner wanted a "new" banner tag on new post's, so to make it easy I was going to put it on the images, but because of scaling and different images it's ...
0
votes
0answers
14 views

Trigger JS in custom meta box if a featured image is loaded/exists

Playing with WordPress customization I created a meta box with several others that report back details of the post. One meta box evaluates the featured image but I am having trouble figuring out how ...
-4
votes
0answers
6 views

Ask for a product button WooCommerce [on hold]

I need to replace the Add to cart button to Ask for this product or request a quote. The most popular plugin I saw, called YITH I believe adds a second cart for quotes. But I just need something ...
0
votes
1answer
15 views

Group posts that matches a term in a loop

I'm working on a website that shows a lot of products, and this is my structure: Product (custom post type) -->Brand (custom taxonomy) ------>Brand A (custom term) ------>Brand B (custom term) ...
-3
votes
0answers
9 views

My post links keep disappearing, why? [on hold]

I have a blog with wordpress.org, on which I have an annoying problem. When I write posts and insert links at the end of the post ("Read more"), the links keep disappearing while I am working on the ...
0
votes
0answers
8 views

Allowing Wordpress from non-public address/domain

I am running a development environment with WAMP and hosts file modified accordingly, such as http://mylocalwp. I'd like to allow users over the Internet to be able to access the site using a public ...
0
votes
0answers
10 views

Gravity Forms - let subscribers create and edit forms [on hold]

Was wondering how to let subscribers create and edit forms such that each subscriber can only see and edit his forms. What I came up with so far: 1. In order for user to be able to create, edit and ...
6
votes
3answers
117 views

Prevent comments_template() to load comments.php

I'm developing a WordPress theme using a template engine. I want my code to be as much compatible as possible with WP core functionality. Some context first My first problem was to find a way to ...
0
votes
0answers
16 views

How can I call a JS and CSS enqueue in a post's post.php?

I am looking to call a JS in the footer and CSS in the head of a post's edit screen only. The JS and CSS are used to evaluate and style the post and send it's results to a custom meta box. I am able ...
0
votes
0answers
11 views

sunrise.php for multi-network install of domain mapping plugin

Currently using the WP-mu-domain-mapping plugin on a multi-network installation. The domain mapping works fine with the provided sunrise.php file, however it breaks (sites no longer map correctly) ...
0
votes
0answers
15 views

Make a post readonly from a specific date

I have roles in my wp and I (admin) want to make a post readonly from a specific date to other roles. Is there a plugin or a code that i can do this? Thank you
1
vote
2answers
17 views

Javascript that will execute on only child pages of a specific parent

Semi-new to WordPress, so apologies is this is an obvious question! I'm trying to execute some JavaScript on a WordPress site, but only on the child pages of a specific parent page - so, I have ...
0
votes
2answers
14 views

Newly uploaded images are not updating in featured image

Using the google page speed test I saw that some images were too large and needed to be resized. I used the ftp to download the necessary images, resized them locally, and then used the media upload ...
-5
votes
0answers
22 views

I need WP Gallery Plugin [on hold]

I need a fast and robut gallery plugin for my wordpress blog, which one you guys think is best? Free one will be great.
3
votes
1answer
42 views

How to mark articles as read?

I have a normal Link: <a href="/article-1"><span class="visited-circle"></span>article 1</a> and when someone have visited this article so i changed the color in CSS: ...
0
votes
0answers
9 views

Dump new user data into codeigniter user's table

Here is the flow: Add new user from WordPress dashboard. Grab the newly registered user's data. dump user's data into codeigniter app database What i have tried: using user_register action hook ...
0
votes
0answers
16 views

How do I use TCPDF to make a PDF Generator plugin?

I need to make a portion of a Wordpress site able to be converted into PDFs, using a specific already-made design. I have the template built out with TCPDF (because I need customizable page breaks), ...
0
votes
1answer
11 views

Infinite scroll for text in post with url page change

I've been looking for a solution to my problem for quite some time. I would divide the text of an article, in parts by adding the "paging" infinite scroll and so far I have seen that it is possible ...
0
votes
1answer
15 views

Customizing user data

For a school, I'd like to add custom fields to users, such as department, curriculum, date & place of birth, education, phone number, social links.... How can I accomplish this? I see there are ...
0
votes
0answers
7 views

show attributes expanded by default in the WooCommerce Admin

Is there way to show all the attributes already added and collapsed in woocommerce admin so all attributes are shown as a form I just fill out. This way I can eliminate having to add them and ...
0
votes
0answers
12 views

Encoding issue with $wpdb

I am trying to upload data into a table using the following code: $table = 'wp_promotion'; $data = array( 'id' => $id , 'art_id' => $art_id , 'nom' => $nom , 'category' => ...
0
votes
0answers
16 views

How to update Update click count in user meta

I have a custom code which updates count when someone click on each user link. Here is the code HTML OUTPUT <div class="grid-item grid-item--width2 user-img-32" rel="32"> <a ...
1
vote
1answer
26 views

A snippet after every image

folks. I need to put a piece of code after every post image (post attached image). it's something like this: <img class="alignnone size-full wp-image-3079" src="imgurl.jpg" alt="02" width="2592" ...
0
votes
0answers
5 views

Query by attachment image size

Is it possible to use WP_Query to get attachment images by pixel size? For example all images with a width of 500px and height of 300px. Or images with a height bigger than 300px. As far as i can ...
1
vote
0answers
19 views

How to resolve error “Cookies are blocked due to unexpected output.”?

I am facing an error as per below at admin panel login. "ERROR: Cookies are blocked due to unexpected output." I've tried several solutions like, Log checking (No logs are showing in log file) ...
1
vote
0answers
18 views

Number of pages - multiple (custom) post types

My archive query contains a custom posts_per_page, order, orderby, post_type and paged (via wp-pageNavi). array ( 'order' => 'DESC', 'orderby' => 'title', 'paged' => 1, ...
0
votes
0answers
10 views

How to create nested metabox

I am creating a plugin and in that i want to create a nested repeatable meta box. I have trying create it but not getting any success. Bellow is the code i am using. It works correctly for single ...
0
votes
0answers
15 views

Password protecting a CPT using custom fields for password (not the 'wordpress way')

I need to password protect a CPT but I don't want to use the default wordpress option for this. My CPT has two custom fields for storing a password, 'client-password' and 'guest-password'. Based on ...
4
votes
4answers
87 views

Check if partial file is called from within header.php or footer.php

I am including a partial file both in header.php and in footer.php with get_template_part('content-form'); Is there an if clause I can use to check from where the file is being called? If it is ...
0
votes
2answers
17 views

Embed from Pinterest

I'm looking for a way to show a certain pinterest pinboard in a post. I've found in the wordpress.com Documentation that you can simply post your pinboards URL there. This is not possible on a ...
1
vote
1answer
18 views

how to display image from rss

i'have added thumbnail image to Rss of my blog and I'm using this code to display the rss in another website . please guide me how to add image thumbnail to this code ... see the result at : ...
-1
votes
0answers
16 views

I'm not able to send email in wordpress using pluging [on hold]

Hello Im using Contact Form 7 plugin in my wordpress. I'm new to wordpress, I have added a contact form in wordpress site and it is saying this error. Failed to send your message. Please try later or ...
1
vote
0answers
13 views

Really confused about approach to take to solve this problem

I'm trying to create an events plugin and so far, I'm through with the following: A short-code that displays a form on the front-end to the user. The event display page that renders the output. ...
1
vote
0answers
10 views

Multiple values in a rewrite rule, is it possible?

I'm using url rewrites for a filter i'm building. The current solution works for one selected value. So if I select one type of dish like dinner, it goes to /recipes/dinner/. But what if I want to ...
1
vote
0answers
24 views

Showing random content / pictures from earlier posts in a sticky post?

I have a sticky post on my wordpress blog, in the beginning. I would like to place some random content in it, by simply replacing some HTML in the post content. The random content would come from ...
0
votes
0answers
18 views

Wordpress update removes picture or changes pic paths

I have a big problem. I have installed and configured Wordpress, on my test server and then on a live webspace. All was fine, the website went live. After a while, I logged in: And wordpress forced an ...
0
votes
2answers
28 views

Show custom message/info for authors in add/edit post page

I have a multi author blog and i need show a global info message in top of add post page, so all authors can read it when they come in this specific page, how i can add it? Thank you
1
vote
1answer
27 views

wp_register_script(… $in_footer = true) not working

I'd like to load some javascript files in my footer. I tried to accomplish it in functions.php like so: function my_init() { // LOAD JQUERY wp_deregister_script('jquery'); ...
-4
votes
0answers
23 views

how to build categories in one page theme, [on hold]

I am new Wordpress user. I want to build one page theme. I am unable to change the name of the predefined category in 4.5.2 version. Need help to sort this problem.
-6
votes
0answers
21 views

Displaying Particular Post on Big Grid 1 block of News paper wordpress template for whole day [on hold]

I am using using news paper template as in this link, http://demo.tagdiv.com/newspaper_local_news/ and i want to display my particular post to display under TENDING NOW(where test is moving from left ...
-2
votes
0answers
37 views

my footer file remove every sigle day [on hold]

It's been a month till i have this issue and try different solution but getting no answer. i have wordpress website and every day i do check it footer file have been disappear from my host. and i ...
0
votes
0answers
19 views

How to open a bootstrap modal in Wordpress?

I'm making a Bootstrap modal in my site. First, I created 2 custom post type in my functions.php: 1 - Box of Portfolio 2 - Content of Portfolio Modal <?php // PORTFOLIO MODAL ...
0
votes
1answer
16 views

hide something in single page if current author has only one post

I'm trying to hide a div in a single page if the current author of the post has only one post. Any ideas on how to achieve this? <?php hide or don't display if current author has only 1 post ?> ...
-5
votes
0answers
23 views

How can I transfer a wordpress site from subfolder to the main domain path? [duplicate]

I am using godaddy. I have this subfolder here: http://www.iliveaccountable.com/mytestsite/ where we run our test dev site and we want to transfer it to the main URL http://www.iliveaccountable.com/ ...
-1
votes
1answer
32 views

is using the_posts_navigation() required?

I want to create a theme and get it approved on wordpres.org and want it having number page navigation: The HTML code should Bootstrap 4's navigation component. i can accomplish the above with an ...
2
votes
2answers
49 views

Custom attribute for the title tag with wp_title()

Can i add the itemprop to the title element and still use wp_head() and add_theme_support( "title-tag" )? I want to create a theme and get it approved on wordpres.org which uses microdata. The ...
0
votes
0answers
23 views

Get posts that matches specific terms of multiple custom taxonomies

I'm working on a page that show a lot of products. My structure is Product (custom post type) -->Brand (custom taxonomy) ------>Brand A (custom term) ------>Brand B (custom term) -->Department ...
1
vote
1answer
26 views

Change settings of get_post_type_object

I've a theme with a plugin provided by theme developer for manage portfolios section. This plugin create a custom post type with this code: //Portfolio post type ...

15 30 50 per page