WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have an image on this website http://www.henricomg.org/garden-advice/ that I have created as the logo.  Underneath the image between the bottom of the butterfly image and the navigation bar there is a thin white line.

What is the css to get rid of that white line?

I have tried negative values on margin-bottom but it still didn't work.

Thanks,
0
I don't know PHP and a website I manage is a WordPress site which has a custom made contact form that is being brute force attacked. I know how to add a captcha in ColdFusion but don't know how to do that in PHP. Does anyone know how to add a captcha in PHP that would be easy for me to implement?
0
Hi, we are redesigning https://techgardens.com at http://146.66.113.175/~techgard/

The marketer in charge is changing the site structure slightly, and I would like to know if there's a tool that, once the new site goes live, can tell us what we need to do with 301 redirects,

I have the sitemap for the old site, I'll have the structure of the new site, and I can do it by hand if need be, but is there a handy tool out there? Both site are in wordpress. We also have thousands of products on the old site that I've transferred over, but did I get them all? Unknown.

Thanks.
0
Dear Experts,

We are using Wordpress on Bluehost for our website, and using WP Mail SMTP plug-in to send out acknowledgement emails after we receive a request.  We are having issues because our client, who is receiving this request mails use Mimecast, and they see this as spoofing, because All email for Bluehost's shared hosting customers is routed through a pool of proxy email servers.  We cannot white list a range of IPs because they seem to change all the time.
We tried other plug-ins, but the issue always remains the same.  
Please advise.
0
What's it called when you have you have a background picture with a transparant color with text on top? Similar to the top of this site? https://charlottediscountproperties.com/charlotte-off-market-deals
0
I had this working for custom post type called episode. But had to switch to posts.

I no longer have the term id of 173 which is why it's commented out.

Right now I'm not getting the term premium swapped out for Free once I hit the 11th post. It still says Free for the last 11 posts and if I add a new one it just keeps the Free term and not Premium.

/*Add terms to chapters */

add_action( 'save_post_episode', 'total_set_default_object_terms', 11, 2 );
function total_set_default_object_terms( $post_id, $post ) {
  if ( 'publish' === $post->post_status) {
    $position = 1;
    $args = [
      'numberposts' => -1,
      'order' 			=> 'DESC',
      'orderby' 		=> 'date',
      'post_type' 	=> 'post',
      'taxonomy' => 'episode_type',
      //'tax_query' => array(
					//array(
					//'taxonomy' => 'episode_type',
					//'field' => 'id',
					//'terms' => array( '173' ),
					//'operator' => 'NOT IN',
					//),
					//),
						];
						
						
    $posts = get_posts( $args );// query posts that are episodes in descending publish date order
    foreach($posts as $post) {
      if ($position > 10) {
        wp_set_object_terms($post->ID, 'premium', 'episode_type', false);
      }
             
      $taxonomies = get_object_taxonomies( $post->post_type );
      
      $position++;
     }
  }
}

Open in new window


Halp!
0
A company has asked me to build them a new Wordpress website and they want to host it on their own servers. My concern has to do with how to create a website in a privately hosted environment, since I have only built websites using hosting company environments like Bluehost or Network Solutions, for example. I am comfortable logging in to an administrative environment and utilizing Cpanel tools but can’t visualize what it would be like in a self hosted situation?  Nor have I installed Wordpress using anything but a self-installer. Can someone give me an idea of what I am up against here, if it would be wise to self host a Wordpress site, and if there is anywhere on the net I could see visual examples of a self hosted environment?  Thank you much. I hope you understand my concerns here.
0
How would I go about hiding only the word "by" in the following block of HTML using CSS ?

<p class="author-info">

	<span> 
	
		by <span class="blue">Joe Schmoe</span> 
		
	</span>

</p>

Open in new window


I've tried the following, .. but I can't seem to get it to work:

p.author-info span { display:none; }
p.author-info span span.blue { display:block!important; }

Open in new window


What's the trick?  Is this even possible?  

Thanks,
- Yvan

p.s. Note that this is dynamically generated code within a commercial WordPress theme, .. so modifying the HTML code directly isn't really an option .. at least not without creating problems.  That's why I'm trying to use a simpler CSS based approach.
0
New site: http://146.66.113.175/~techgard/

Blog page listing categories: http://146.66.113.175/~techgard/blog/

Category page: http://146.66.113.175/~techgard/category/cyber-security/

Single post page: http://146.66.113.175/~techgard/capital-one-whats-in-your-network/

I want to be able to style the category page and the single post page without buying Elementor pro. We're using template Gridlabs with elementor.

Are there any great tutorials out there? Or is there a plugin that will allow me to do this easily? Thanks.
0
This portfolio plugin here is fine, but I want to customize the link on the detail button.  http://146.66.113.175/~techgard/products/

For instance, on the IX details button, instead of going to http://146.66.113.175/~techgard/portfolio/ix-systems/, I would like it to go to http://146.66.113.175/~techgard/ix-storage 

1. Can I update that in the database?
2. Or can I just do a permanent redirect with htaccess?
3. If I do, will it get overwritten if I update the plugin?
4. Any other way to do this?

Plugin is: https://wordpress.org/plugins/filterable-portfolio/ on WP 5.2.3. Thanks!
0
Hi, My boss wants this:  http://146.66.113.175/~techgard/products/  A few rows of logos, filterable by category, with a details button that leads to another page.

The problem is, all the plugins I find that do the filterable option don't allow a link to a separate page. So instead of going to:  http://146.66.113.175/~techgard/portfolio/ix-systems/ on the IX logo, she wants to go to a page of her own making: http://146.66.113.175/~techgard/ix-storage/

Maybe I'm not looking for the right kind of plugin, so I thought I'd ask the experts. Thanks,
0
http://146.66.113.175/~techgard/ix-storage/ What is the simplest way to make the bullets a black disc instead of these checkmarks? I see that it seems to be using an icon. Thanks!
0
Hi Experts,

When you go to https://www.aces-project.com/ you will get a SSL Mixed Content warning for the ".../2018/05/IWSC-certified-....jpg" image, but under the source I search and cannot find any image references to "http://"

Can any one spot what's going on?

Thanks.
0
Hi, I want to add an image box, with image to the left, then under the text have a button. But I want the button within the box, so it is aligned to the right of the photo.

What I have is this, two sections:
two-sections.JPG
But I want this, with the button in the same section:

1section.jpg
0
Hello all, I have been asked to re-brand and create a brand new website for a company that is currently unhappy with their site and the lack of traffic it brings.  Here is the situation, they want a new hosting company to host their new site, using the same domain, using Wordpress.  I understand how to create the new site using Wordpress and implementing Google Analytics, but I have never migrated a site from one host to another host.  Also, their existing site was not created with Wordpress CMS.  So my real question becomes, how would I migrate their website from the existing host to Bluehost Wordpress CMS?  Or is it possible to leave the old site on the old host and create the new one on Bluehost Wordpress and then effectively cut over from one host to the new host?  I would assume you know what I am asking now and I apologize for my lack of knowledge and experience with this situation.  Thank you very much!  Please let me know if you need more information from me.
0
http://146.66.113.175/~techgard/  the footer is full width,

http://146.66.113.175/~techgard/design-engineering/  the footer is not full width, although the css tells it to be.

I tried a new page, Elementor full width, and it still is narrow.

I made the design-engineering page full width, and then had to stretch the sections, but the footer doesn't allow that. Theme is gridlab, but the customize section doesn't help.
0
I'm trying to fix an annoying CSS bug on a WordPress site that I'm developing and am hoping that someone here can help me.  If you view this page in either Firefox, Edge, or IE11 and scroll down to the bottom -- you'll notice that the 2 social icons are being displayed to the right of the 3 links (ie: Privacy Policy, Terms of Use, Sitemap).  

https://rgc.touchstoneliving.com/

This appears to be being achieved using this CSS rule:

.widget-pages ul {
    list-style: none;
    columns: 2;
}

Open in new window


... where "columns: 2" is suppoedly splitting the 5 different list items into 2 separate columns.  

However, .. if you view the same page using either Chrome or Opera, ..the Instragram social icon is for some reason being displayed at the bottom of the first column instead of at the top of the 2nd column.   My assumption was that the CSS would try to evenly split the 5 different list items into the 2 different columns - with the first 3 list items being displayed in the 1st column, and the remaining 2 in the 2nd column.  But obviously this isn't the case.

How can I fix this?  Is there any way that I can tweak this CSS rule somehow so that it forces the last 2 list items to be displayed in the 2nd column (in Chrome and Opera)? If so, how?

- Yvan
0
Hello all, I have built new websites for a few companies that were their very first website, so no prior hosting company or SEO efforts.  In fact, they have only been Wordpress sites hosted with Bulehost.  No I am being asked to build a re-branded website for a company that has had an existing website for years and it showing up pretty well on organic searches from Google.  The domain needs to stay the same.  I have the ability to build a new site for them but I don't know the process in which you switch from the old site to the new site or if they will want to stay with their existing hosting company which is Windstream Communications, LLC.  The other question I have is can I replace their existing website without destroying their SEO position that they have attained?  Is it common to switch hosting providers when a company rebuilds their website or more common to continue with the same hosting company?  Can you guys please help me ascertain what I need to ask from them and what I need to do?  Thank you so much.  I am feeling a bit overwhelmed by this right now.
0
I've been researching this topic online for a couple of hours now, and it appears that there is no reliable way to detect the screen width in a WordPress theme using PHP (ie: wp_is_mobile() is apparently now regarded as completely unreliable and has been rendered obsolete).    

I'm already aware of the fact that I can use CSS media queries to hide and display different elements based on the width of the viewport.  The problem with this, however, is that it requires that I duplicate certain elements (ie: search boxes, navigation menus, etc) .. which results in a slightly larger page weight as well as duplicate ID attributes, ... and hence invalid HTML that doesn't validate.  So I feel that this technique isn't ideal.

I'm also aware of the existence of WordPress plugins that detect the user agent, and that allow you to place similar looking conditional logic in your theme files. However, the research I've done suggest that the detecting of the user agent is also very unreliable, as it can easily be spoofed .. and it complicates development besides, since you can't just re-size your desktop browser to see the viewport based layout adjustments (you have to test using actual mobile devices).

The reason I'm asking is because I'm trying to adapt a custom design for a WordPress theme so that it displays a specific and very different layout on mobile, and it seems that the best way that I'd be able to accomplish this is by somehow detecting the width of the …
0
Hi everyone, I added LDAP AD to WP with the help of plugin and membership plugin added the users to the site in that amount that I had on that moment.  

What if I want to check the status or what if the user will be deleted from AD (in this case would still have an access to the Wordpress sete).  How can I synchronize this processes or check the user status, delete that users automatically from WP by any plugin?

I have WPMU Ldap Authentication plugin,
Simple WordPress Membership plugin,
Active Directory Integration for Intranet sites plugin.
0
We wish to use 2 different domains (not subdomains) on our Wordpress Multisite network.

We have built a Multisite network with 2 sites. We want domain #1 to go to site #1 and domain #2 to go to site #2.

Wordpress Multisite is all installed on one server (as we think it needs to be) - so both sites are on the same server.

We’ve got Domain #1 going to site #1, but we’ve also got Domain #2 going to site #1. How do we get Domain #2 to route to site #2?
0
I have a development system that I am building with nginx, mariadb and php-fpm.  The server is using woocommerce 3.6.5 for a shopping cart.  I imported a working database from my production server.  I can access the admin section, the products in the dashboard but when I go to the site and try to get the products I get a 404 error.

I have double-checked the permalinks, I have cleared wp-rocket cache, rebuilt the search index, restarted mariadb and nginx but nothing changes the 404.

/var/log/nginx/error.log:2019/08/12 20:37:55 [error] 24971#0: *121 open() "/data/web/theherbsplace.com/404.html" failed (2: No such file or directory), client: [my ip], server: www.findinghelp.me, request: "GET /product/golden_salve_p_343/ HTTP/1.1", host: "www.findinghelp.me", referrer: "https://www.findinghelp.me/"
/

Open in new window


The exact url works on https://www.theherbsplace.com/product/golden_salve_p_343/

This is the permalink for the product - https://gyazo.com/a101a215fe3278be4ce08ccecba55698

Please help me to get the products showing.
0
Using MCRYPT is hindering my move to PHP 7.3. Currently mcrypt works fine for encryption and decryption; however, OpenSSL cannot decrypt my MCRYPT’ed data. So it appears that I need to run some kind of script that will get the 3 post_meta fileds from each post, decrypt them using mcrypt, then re-encrypt them with OpenSSL. Further “day-forward encryption will be done using OpenSSL.

I’ve attempted many options for decrypting the MCRYPT’ed data with OpenSSL and they have all returned NULL.
So I’m giving up on that direction.

I think an ETL like script would work to run through the posts (they are (CPT) Custom Post Types called formlead), see if they have encrypted data in the 3 fields (to which most of them will) , then decrypt each field using current MCRYPT method into new vars, then re-encrypt into new OpenSSL method, then write this back to database with the same postID. Then the new decryption method could read the data when needed in the future.

However, I’m not the greatest WordPress PHP coder. Can someone help with the script please? I could load this as a page and specify date range to make sure I’m not overloading the server. There’s about150k posts with 8 million + postmeta rows.

I would be doing this against a local copy of the DB and not production to test. Then I would snapshot the production DB and run against it after hours.

Mock code:
<?php

vars = manually set date range

get posts within date range

while have_posts

get 

Open in new window

1
I'm currently working on a custom WordPress site that has a sticky menu enabled, meaning that when you scroll about 100px or so down the page, the menu then remains fixed to the top of the browser.  You can see it in action here:

http://dev.movingpicture.com/

Although I'm satisfied with the way the sticky menu is working, I would also like to reveal a small company logo in the upper lefthand corner, about 50px from the left edge, and about 25px from the top.  The logo should only be revealed only after the user has scrolled about 180px or so down the page, and should otherwise always be hidden.

Could anyone here help me achieve this?  The WordPress theme is loading the jQuery library, so I'm open to solutions that utilize it, along with whatever custom CSS might be needed.

Thanks,
- Yvan

p.s. I would prefer to implement this as something custom, rather than having to experiment with different WordPress plugins, as I have already tried a variety of different plugins (unsuccessfully).
0
This is showing the results for ALL taxonomies, I only want it to show records for the current taxonomy I click into. I have the current taxonomy ID like this:


$term_id = get_queried_object_id();

Open in new window

But just not sure how to use it to filter in the below to only show records for that ID. I need the child taxonomy record as well as the custom post type record for that child taxonomy.

<li id="camera-brands" class="widget-container">
  <h3 class="widget-title">Camera Brands</h3>
  <?php $cam_brands = get_terms('brands', 'hide_empty=1'); ?>
  <ul>
    <?php foreach( $cam_brands as $brand ) : ?>
      <li>
        <a href="<?php echo get_term_link( $brand->slug, 'brands' ); ?>">
          <?php echo $brand->name; ?>
        </a>
        <ul>
          <?php 
            $wpq = array( 'post_type' => 'cameras', 'taxonomy' => 'brands', 'term' => $brand->slug );
            $brand_posts = new WP_Query ($wpq);
          ?>
          <?php foreach( $brand_posts->posts as $post ) : ?>
            <li>
              <a href="<?php echo get_permalink( $post->ID ); ?>">
                <?php echo $post->post_title; ?>
              </a>
            </li>
          <?php endforeach ?>
        </ul>
      </li>
    <?php endforeach ?>
  </ul>
</li>

Open in new window


The desired output would be:

Title 1
  record 1
  record 2
  record 3

Title 2
  record 1
  record 2
  record 3

Open in new window

0

WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.