Most voted "wordpress" questions
Wordpress is a content management system (CMS) written in PHP with Mysql database, aimed primarily at creating websites and blogs. This tag includes questions about modifying themes and plugins, and extending their source code, always observing the scope of the site. Do not use for support questions, installation etc.
Learn more…1,512 questions
Sort by count of
-
1
votes1
answer1873
viewsWoocommerce customer registration
I am with a project where I need to customize the Woocommerce registration form, it already has email and password. But I need to add the CNPJ field and validate if it is true, and this information…
-
1
votes1
answer447
viewsIframe error not clicking on Mobile (mobile)
I’m having trouble seeing iframe only on mobile devices (in dev tools simulating mobile works ok, the situation is as follows: Website in wp Really Simple SSL plugin installed (I ran tests with it…
-
1
votes0
answers36
viewsGrab wordpress post title by SQL
Well, I need something like this: $titulo = get_the_title( $post_id ); update wp_posts set post_content = replace(post_content,'>Episódio','>$titulo Episódio'); I know you’re completely wrong,…
-
1
votes2
answers61
viewsI cannot remove default background
Next guys, I’m using a wordpress plugin to organize the menu dishes of the restaurant, this: (food-and-drink-menu - url: https://br.wordpress.org/plugins/food-and-drink-menu/) All right, let’s go!…
-
1
votes1
answer158
viewssolve google speed insights problem
in google speed insights this error appears : "Enjoy browser cache Setting an expiration date or maximum age in HTTP headers for static resources instructs the browser to load previously downloaded…
-
1
votes1
answer308
viewsWordpress - Custom Post Type and New Taxonomy - Display records from selected category only
I created a custom post type called "downloads" and created categories for these using register_taxonomy() called downloads-Category. In WP-Admin, I managed to register all my files and separate…
-
1
votes1
answer32
viewsWordpress shortcode
Good afternoon, I need to make a shortcode in wordpress so that it shows the version of my program in the footer of the site, next to copyrigth. Do I need to use a hook? Can someone help me?…
-
1
votes0
answers32
viewsProblems with Wordpress Loop
I’m creating the page Category.php and using a Custom Post Type called Father. Within that post type has some categories: 1, 2, 3, 4 etc. What I wanted was to enter the page category 4, showed only…
-
1
votes1
answer1690
viewsHow do I limit the size of the text area in a form in Contact Form 7?
I put a simple form on my site but I’m having difficulties in limiting the area aimed at the user’s messages (the one that can be resized with the mouse), because it is has a standard size that…
-
1
votes1
answer3085
viewsHow to create a horizontal overflow?
Next, I am editing a site using wordpress and I have some limitations regarding the use of html and etc, I wanted to create a horizontal overflow, so instead of staying as in the image below, the…
-
1
votes1
answer165
viewsHow to filter posts by Letter in Wordpress only in $_GET mode
Hello I would like your help to be able to add to the code below, a correction that will perform alphabetic filtering with letters from # to Z, only when the parameter $_GET['letra'] is executed, if…
-
1
votes1
answer21
viewsCatch display_name in wordpress
Next, when a user registers on my site, he receives a welcome email, I’m using a plugin (Buddypress) that sends me this welcome email, using a filter that made it available I’m changing the…
wordpressasked 6 years, 2 months ago DeV Wordpress 29 -
1
votes0
answers44
viewsPassword Recovery WORDPRESS REST API
Good morning, I am developing an application, and I use a Wordpress web system. This way I use a REST API plugin to get the information pertinent to the system. However I am not knowing how to do to…
-
1
votes1
answer1350
viewsError when trying to update a Wordpress post using the WP REST API plugin
Hello, I’m new with Wordpress and need (for yesterday) solve this problem. Help! I’m creating a simple Angular 2 (V6+) integration that accesses the plugin-generated api WP REST API and the json I…
-
1
votes0
answers63
viewsSeveral errors like this on the console: Invalid or Unexpected token
Hello, I’m having several errors like this in the browser console (as image). All these scripts are Wordpress own, nothing there was I who put. I’ve disabled all plugins, but the problem persisted.…
-
1
votes1
answer396
viewsJavascript does not work in Wordpress
I am running the following Javascript code on the site I made in Wordpress. var itens = document.querySelectorAll('h1'); console.log(itens); I am pulling a file that is in the js folder, but it does…
-
1
votes0
answers55
viewsHide Google user profile photo from the site when you have logged in
Good afternoon, I’m making a website for a client, it has interaction with the Google Maps Plataform api, when the user is logged in to your google account keeps showing his photo on the maps, my…
-
1
votes1
answer684
viewsHow to list all categories in wordpress menu automatically?
I’m trying to list all the wordpress categories to form a dropdown menu with them as the menu is created in the admin panel of the theme. I want where the category item is in the image menu below to…
-
1
votes1
answer19
viewsPost Caurosel - I can’t edit CSS
Good afternoon, everyone created a caurosel post to display on the main page of a site I’m developing on wordpress My question is the following when I create Carousel it generates a shortcode…
-
1
votes1
answer184
viewsHow to scroll automatico for a distance from the top without anchoring Wordpress
Well I’ve researched enough, I’ve seen several tutorials on how to make a scroll via anchorage, however I search a scroll for all pages including the initial, I searched some plugins in Wordpress as…
-
1
votes1
answer45
viewsPHP - function in Wordpress plugin itself causing error 500
I developed a plugin for inserting shortcodes in Wordpress. It was my first, for personal use, has been working for years. But a few weeks ago, it started to cause error 500 (POST…
-
1
votes1
answer42
viewsAzure Application Service Permission Bug
I have an application service on Azure running wordpress. One day, while updating a plugin, this not only stopped working as the panel Kudu cannot visualize it. Observe: I can list inside the folder…
wordpress windows-azure file-system azure-app-service file-permissionasked 6 years ago Andre Mesquita 1,114 -
1
votes2
answers83
viewsHow to disable the Woocommerce CSS from the zero theme I created?
Hello, I’m encountering problems when using Wordpress Woocommerce. I created a theme from scratch, but when installing Woocommerce all the visual part I built was changed by the Woocommerce plugin.…
-
1
votes1
answer25
viewserror in wordpress query
I have the following appointment : <?php $footerlocal = array( 'numberposts' => 2, 'post_type' => 'page', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'zona', 'value'…
-
1
votes1
answer34
viewsAdd HTTPS to a website that isn’t at the root
I have a site that he is not at the root, when entering it he adds/portal in front of the link because it is divided into folders inside the root, when accessing the /portal he goes to the index of…
-
1
votes2
answers169
viewsCheck if there are products on sale in Wordpress with Woocoomerce
I am building a Wordpress site with Woocommerce and want to make the check that if there are products on sale with the shortcode, if exist returns me the title + products, if there is no product on…
-
1
votes0
answers31
viewsSkip a Slug by clicking the link
For example, I have the following example url: dev.google.com/Members/usuario/profile/Activity/mentions. echo ( '<li id="' . $user_nav_item->css_id . '-personal-li" ' . $selected . '><a…
-
1
votes0
answers21
viewsTake Data Custom WP Function
I made a custom function in functions.php in the Wordpress theme. I need to get the data from the wp_postmeta table, but I’m not getting it. It seems to be a runtime problem(The data is not saved…
-
1
votes2
answers1133
viewsHow to create filters for categories with php and html to use in Wordpress page?
Hello, I would like to create a filter for categories of posts in WP. As in this example https://bootsnipp.com/snippets/N6vrp. But I don’t know much php, so I don’t know how to do it, so when I…
-
1
votes2
answers35
viewsQuery String wrong with use of prepare. Wordpress
I have a problem building a query here: $sql = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}imagens WHERE categorias LIKE %d limit %s, %s", array('%' . $wpdb->esc_like($var['busca']) . '%',…
-
1
votes0
answers36
viewsWhere is the CSS list that wordpress loads?
My wordpress site is loading some CSS that serve no purpose and need to delete some of the entries, ex: <link rel='stylesheet' id='int-banner-css-css'…
wordpressasked 5 years, 6 months ago Italo Rodrigo 4,344 -
1
votes0
answers15
viewsListen to class during page loading
I need to create a function or script that when loading the page detects which elements have a specific class and execute the defined programming... in case it would hide the content... only that…
-
1
votes2
answers40
viewsRelated Posts Wordpress
Fala galera, I am developing a wordpress theme, and on a page I use a function to pick up related posts, it picks up all posts to the current. But he wouldn’t need to take the current one, what…
php wordpress function wordpress-theme wordpress-pluginasked 5 years, 10 months ago José Firmino 43 -
1
votes0
answers59
viewsUpdate search field on a page after x query time
I’m making a query terminal using Wordpress + Woocommerce, as I will use barcode reader and will have ZERO interaction with keyboard and mouse, I need the field automatically reload a few seconds…
-
1
votes0
answers33
viewsProblem with Keyframe within @media on wordpress
Good morning I’m finding the following difficulty in editing a mobile code in wordpress css, I made an animation with the keyframe on the desktop with the code below, but it’s time to put this same…
-
1
votes1
answer131
viewsCatch Taxonomy Name According to Slug - Wordpress
I was wondering if you could catch the name of taxonomy(wordpress) according to the Slug that is in the url(http://localhost/tag/Weg/? taxonomy=command-and-protection). Information of the Taxonomy:…
-
1
votes2
answers47
viewsHow to include a file that is inside another folder on the same server
I’ve seen several other similar questions here in the O.R., and outside the community, but none were really helpful, some options that in theory should have worked, but somehow didn’t work. I…
-
1
votes0
answers459
viewsDisplay login username in wordpress
I have a site in wordpress, use the template TOTAL. In this template, at the top of the site appears the login message for the user to login, and it changes to logout when the user is already logged…
-
1
votes1
answer103
viewsLimit amounts of categories in wordpress
Hello, all right. I have a question here and I’d like a little help from you I have the following code: <?php $prod_marca = get_field('categoria_e_tags_marca'); if( $prod_marca ): ?>…
-
1
votes1
answer160
viewsAssociate user data according to "/profile/username" url
Hello I’m a beginner in php and mysql, I’ve searched everything that is singing and I still can’t understand how to associate my user url to id. I would like to know how to associate and display…
-
1
votes2
answers145
viewsHow to create a single page in Wordpress for a post-type?
I created a specific Post-type in functions.php: // Meus posts types function meus_posts_type() { // Testemunhos register_post_type('testemunhos', array( 'labels' => array( 'name' =>…
-
1
votes0
answers145
viewsWhy am I not able to pull the style.css and bootstrap.css properly?
I created a function to pull the css and bootstrap files in Wordpress but they are appearing at the end the number of a version that disturbs <link rel='stylesheet' id='wp-block-library-css'…
-
1
votes1
answer31
viewsHow to use a custom wordpress page?
I am creating a site in wordpress, I have some templates already ready as: index.php, Category.php, 404.php, single.php. I created a custom "blog.php" page and directed a link to it with:…
-
1
votes0
answers19
viewsWordpress WP Query + Custom Post + Custom Fields + Order By Compound
Good afternoon, I searched a lot about it, summarizing: I need a query that brings the post (custom post documents, (title and publication date), in addition to custom_post (Document that is a file,…
-
1
votes0
answers17
viewscallback error: Plugin generating an incompatibility
I am making a site in wordpress and I am using 2 plugins company: Optimizepress and Timeline Express, the problem is that Timeline Express is generating a callback error and that prints an error on…
-
1
votes1
answer49
viewsWhy did my jQuery stop accepting $ but this accepted "jQuery"?
With that error code <script> $(function () { $('[data-toggle="popover"]').popover({ html:true, animation: true, sanitize: false }) }) var slide_old = "slide_img0"; var slide = "efeito_slide";…
-
1
votes1
answer37
viewsReplace random text between two known strings
I need to replace a random text between two fixed strings in a database created by Wordpress. Database: "database" Table: "wordpress_posts" Field: "post_content" ID: "6450" For example, I have the…
-
1
votes1
answer81
viewsCheckout field does not appear in the order object
I’m having a problem with the object order of wordpress. After making the purchase, the order object does not come with the value entered in the field. The CPF field is created by me, follow the…
-
1
votes1
answer577
viewsList Categories and Subcategories on the Site - Wordpress
I am currently with a site project, and I have a list of Wordpress taxonomies, so: -- Engines (parent) --- Single Phase Motors (son) --- Three Phase Engines (son) I wanted to know how to create an…
-
1
votes1
answer75
viewsError wordpress paging (after second page) using custom template
I made a custom page to show the blog post files, but would like to add pagination. When I make the pagination I can see only the first page, from the second page and all the next ones are not shown…