Posts by Luan • 311 points
14 posts
-
0
votes0
answers77
viewsQ: Creating filters using meta_query and ACF (Advanced Custom Fields)
I have this code in my Wordpress template, my goal is to make a filter functionality using the custom Fields of the ACF plugin as the search parameter of my Custom Post Type property Currently he is…
-
0
votes1
answer55
viewsQ: My subquery is overwriting a column of the searched table
I’m putting together a list of posts, where besides the post information I need the information of the house that made the post. I did the following table query posts and casas: SELECT * FROM posts,…
-
4
votes2
answers370
viewsQ: Difference between scroll speed and the speed the image is revealed using background-Attachment: Fixed
Is there any way I can control or create a difference/delay between the speed of scroll the mouse and the speed that an image in background using background-attachment: fixed appear? CSS: #parallax…
-
2
votes1
answer28
viewsQ: <video> does not respect preset height and Object-fit:cover in Google Chrome
I’m calling a video on a father div with the following definition: div { width: 100%; height: 400px; } And as child element the tag <video> with: video { height: 400px; width: 100%;…
-
2
votes1
answer111
viewsQ: Return JSON saved in localStorage
I am trying to recover a JSON that I saved in localStorage, in function salvarOffline(). With the code as is the function listarHorarios() I get a undefined and the loop loop does not work. My code:…
-
0
votes1
answer21
viewsA: Create a list of words to be read by a plugin
I did, in trial and error, but I’m not sure this is the best practice. First, I had to adapt the word search excerpt: $palavras = array( explode( ',', get_option('palavras') ) ); And in this section…
-
0
votes1
answer21
viewsQ: Create a list of words to be read by a plugin
I need to create a group of words, to be set in a textarea, in the admin panel of Wordpress, in a configuration page of my plugin. I have the following code: add_filter('pre_comment_content',…
-
1
votes2
answers59
viewsA: Align images with description
Really, using margin-left is not the best option because it will get bent in different screen sizes than yours. My suggestion is the use of Flexbox: <style> .thumbnails { display: flex;…
-
1
votes1
answer517
viewsQ: Return the URL of an image via JSON
I’m communicating my website with API of Behance and I have the following script written in Angular 1.5.5: var app = angular.module('PortfolioApp', []); app.controller('PortfolioCtrl',…
-
0
votes0
answers208
viewsQ: Category Filter in Wordpress
I need to create a filter of these games where when clicking the button below it recommends one of the Woocommerce products, respectively categorized in "input", "recommended" and…
-
0
votes1
answer255
viewsQ: Performing a function on two different elements without one affecting the other
By clicking on the "See More" button, I need to make the div containing the text of the post expand, if it affects the div next to it. I tried to use toggleClass() but both open at the same time, or…
-
4
votes1
answer596
views -
3
votes1
answer2956
viewsQ: Take the value of an image attribute and show it below
I have this code: <script> $(function(){ $(".flipster").flipster({style: 'carousel', enableTouch: true, start: 0, onItemSwitch: function(){ var nomeAlbum = $(this).attr("data-title");…
-
1
votes1
answer1028
viewsQ: Looping Loops with Angularjs
I’m trying to list the two-loop data ng-repeat of my code, but 1 of them is not working. In case I’m using: <ul class="nav nav-stacked nav-pills col-md-2" > <li ng-repeat="g in…