Questions tagged as 'wordpress'

1
answer

How to list specific subcategories for each page?

I would like to list the subcategories of the page itself, I am using wp_list_categories() and trying to pass the id with get_the_category() , but I am not having any results. <?php $categories = get_the_category(); $id =...
asked by 06.04.2018 / 04:08
1
answer

Create unique content in WordPress (without plugin)

I'm having a bit of trouble reasoning a decent logic for a wodpress theme to present unique content. The idea is this: I need to send an email, which will contain a parameter in the link that will enable the post view. My soluti...
asked by 26.03.2018 / 21:23
1
answer

How to enable data retrieval via Wordpress API

I wanted to start learning React.js and for this I decided to do a theme written in React for my wordpress, using the 'new' WP API functionality. How do I access the API from my computer? I know I have to authorize the API call, but I do not kno...
asked by 23.04.2018 / 19:31
1
answer

How to use the bootstrap carousel in a wordpress theme

I made a simple theme in wordpress and I'm using this type of js: (function($) { console.log("teste"); $('.carousel').carousel(); })(jQuery); and this html: <div id="carousel1" class="carousel slide" data-ride="carousel">...
asked by 17.03.2018 / 16:36
1
answer

Remove posts from category specific wordpress

Hello, I downloaded the dooplay theme and I'm trying to remove from a widget posts that are category 764, but I have not had success so far, could you help me with it? This is the original query code: query_posts(array( 'post_type' =>...
asked by 15.02.2018 / 04:37
1
answer

wordpress error in theme installation

When I import content from a theme into wordpress, it returns this error message Invalid post type services How do I resolve this so that I can install theme content correctly?     
asked by 30.01.2018 / 19:25
1
answer

Require login to access site wordpress

I have to make a portal, but it can only be accessed by authorized people, how do I do this with wordpress? I'm a beginner and I do not know how to proceed in this case.     
asked by 23.01.2018 / 12:32
1
answer

Problem inserting in mysql table

Good afternoon, I have this code: <?php $servername = "xxxxxxxxxxx"; $username = "xxxxxxx"; $password = "xxxxxxxx"; $dbname = "xxxxxxx"; $conn = new mysqli($servername, $username, $password, $dbname); $conn->set_charset('utf8'); $name...
asked by 28.12.2017 / 17:15
1
answer

Wordpress: error in getResults

Good afternoon everyone, I'm having this error in wordpress:    Fatal error: Call to a member function get_results () on null in        C: \ xampp \ htdocs \ BrokerWP \ wp-content \ plugins \ clients \ api \ lista.php   online 11 The pag...
asked by 02.01.2018 / 19:14
1
answer

Newsletter with refresh ajax

I'm trying to send this form via ajax and I'm not getting it, is something wrong? I'm banging my head on it, you love it for four hours without success. Note: I'm developing via wordpress and I'm using a plugin called Newsletter to store the...
asked by 27.01.2018 / 17:44