Category Archives: Sin categoría

How to Display post attachment count in admin column in WordPress

Sometimes you have a post with multiple attachments and it would be nice to see a count of the total media attached to a post. To see this you only need add this snippet to the functions.php

add_filter('manage_posts_columns', 'posts_columns_attachment_count', 5);...
Read more

Cómo mostrar el recuento de adjuntos en una columna del panel de administración en WordPress

A veces tenemos una publicación con varios archivos adjuntos y queremos ver un recuento del total de los medios adjuntos. Para ver esto solo necesitamos agregar este fragmento de código al functions.php

add_filter('manage_posts_columns', 'posts_columns_attachment_count', 5);...
Read more

WordPress Dashboard block only for administrators

When in WordPress, a user registers access to the Dashboard, although at first only access to the options that are allowed depending on the role that has assigned in many occasions we may be interested that they can not access, for this we must put the following code to our...

Read more

Fix broken images automatically

Occasionally we have times when we have broken image links on our website and replacing them one by one isn’t easy, so adding this simple piece of code can save you a lot of headaches.

$('img').error(function(){
     $(this).attr('src', ‘img/broken.png’);
});

 

Read more

Comprobar si jQuery está cargado

Un problema muy común cuando se programa en grandes proyectos web es comprobar si una determinada librería está cargada o no, una de las más habilituales es jQuery, si queremos comprobar debemos hacer lo siguiente:

if (typeof jQuery == 'undefined') {

    // jQuery IS NOT loaded...
Read more

Users who do not explain their IT issues well

Those who are dedicated to computer science, no matter what branch, we have found at some point with a series of users without too much knowledge, ask us impossible things, or just do not understand anything we do.

Via redditblog we can see a series of examples of this problem

Read more

Force Download Files in PHP

One of the most common problems that we find is to force the download of a certain file from the client’s browser, thus preventing it from opening.
For this we can use the following function in PHP.

function force_download($file)
{
    if ((isset($file))&&(file_exists($file))) {...
Read more

Chistes para programadores – ¿Tú de quien eres?

Como buena empresa de programación tenemos nuestros dilemas diarios, que si Java es mejor que C, que si programar en ensamblador es entretenido, y en casi todo nos ponemos de acuerdo, menos en una cosa el estilo de las llaves.

¿Tú de quien eres?

Vía http://www.hongkiat.com/blog/...

Read more

Jokes for programmers – Choose an option

As a good programming company we have our daily dilemmas, that if Java is better than C, that if programming in assembler is entertaining, and in almost everything we are agree, less on one thing, the style of the keys.
Who do you choose?

Link http://www.hongkiat.com/blog/progra...

Read more

Guardar la fecha/hora del último loguin en WordPress

Uno de los mayores quebraderos de cabeza que nos encontramos en nuestros proyectos, es averiguar quien a entrado en nuestra página y a que hora.

Si queremos añadir la funcionalidad a WordPress para guardar la fecha/hora del último login debemos incrustar el siguiente fragmento...

Read more

Rúa Pilar Miró n 6 Santiago de Compostela

Jersey St , Manchester, Greater Manchester M4 6JG, GB

T. 609 538 171 - 634 59 34 43

info@teslatechnologies.com