Questions tagged as 'wordpress'

1
answer

Images in theme creation wordpress

I'm creating a wordpress theme for vans for changes, so I've created a page-vans.php page and I'm showing each category of small, medium, large and extra large van, I've attached a thumbnail image and this image is shown in the page index to whe...
asked by 16.08.2017 / 13:27
1
answer

How to set CSS scope in wordpress?

Even using the body_class() function that returns the page name or the id of it when applying a certain rule to css some elements in other pages change, for example: Home: <body <?= body_class(); ?>> <!--...
asked by 03.07.2017 / 15:58
1
answer

WordPress: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2 bytes) [closed]

Does anyone know how to resolve this error? I have already set up the wp-admin.php and .htaccess file, but it still has the same error     
asked by 28.06.2017 / 02:12
2
answers

Remove? resize = from image url

After some tests with gtmetrix I realized that the images take a long time to load when they are resized from the url, using the "? resize = (dimensions) " method at the end of it. > Example: meudomininio.com/imagem.jpg (20ms) meudomininio....
asked by 24.05.2017 / 01:03
2
answers

PHP - If (condition) in wordpress

Next, I have 4 posts in a post type services. Brides, Day Spa, Aesthetic Medicine and Salon <div class="service-content <?php if( $post_title == 'Noivas' ) echo "qwp-content"; ?>"> <?php var_dump($post_title); ?> <?php...
asked by 28.04.2017 / 15:09
2
answers

I can not put the link with the ACTIVE function

I have a menu, in my website in wordpress, that when I move the mouse (there) it loads a border in the base, so that's fine, but I can not put the ACTIVE function for when the person is on the page related to the link stay with the border bottom...
asked by 24.02.2017 / 17:27
1
answer

How to pull the 4 most recent or visited wordpress posts

How do I pull the 4 most recent or most visited posts on the wordpress ?     
asked by 12.04.2017 / 19:07
1
answer

Show only 1 category on page

I need to create 2 functions, each one will show a category (commercial and residential) <?php class MP_Emmet_Plugin_Portfolio { public function __construct() { add_action( 'mp_emmet_section_portfolio', array( $this, 'get_...
asked by 31.03.2017 / 03:27
1
answer

add_term_meta does not execute

I need to create a term with the same name as the post, so I'm using the action save_post. The term is normally created but when adding metadata the add_term_meta function does not execute. This is the code. function create_product_group($post...
asked by 01.04.2017 / 22:46
1
answer

Meta tag wordpress

I've developed a wordpress website for property management to rent houses and apartments on the beach, and I'm wondering how I can add meta tags to optimize Google search, how can I solve it?     
asked by 08.12.2016 / 11:15