Forum Replies Created

Viewing 15 replies - 16 through 30 (of 351 total)
  • Forum: Hacks
    In reply to: update record in database

    Hello,

    I think the problem is the way you treat $post.
    Your function checks to see if it’s an int. However, it is a WP_Post object, so you might not get much further than that.

    You probably should:
    1. Check to see if $post is set.
    2. If it is, you can skip the get_post stuff — since $post already is the post in question.

    Give it a shot. Hope this helps — I haven’t had my morning coffee yet!

    global $post;
    	if(is_int($post))
    	{
    	$post = get_post($post);
    	}

    Actually, my page template suggestion is probably not necessary. I need to clarify what you want here.

    I’m thinking you could just use hierarchical categories to get what you want without any real custom coding.

    Example:

    Science (root-level category)
    * Science News (child of Science)
    * Science Events (child of Science)

    Geography
    * Geography News
    * Geography Events

    … and so on.

    That way, you can get all Science stuff, all Science News, or all Science Events with just category links.

    Will that do what you want, or are we not quite there yet?
    Let me know.

    Forum: Fixing WordPress
    In reply to: How to hide a tab?

    Thanks. I tried logging in, but now there is an error with the login process. It looks like there are extra characters “<” somewhere in your code. I’m not familiar enough with this theme to suggest where that problem might be, since I can’t see the code for the ajax login process.

    Are you able to log in as a member?

    Hi there!

    What you are asking for is a common feature. However, I don’t know if ZeeDynamic offers that sort of option.

    Since the ZeeDynamic folks are in the business of selling themes, give them a shout to ask if their theme can do this.

    Good luck!

    Hello,

    Can you provide more information, please?
    I’m assuming by “O365” you mean Office 365.

    It sounds like the contact form used to work, but now it does not.
    I’m also assuming your client uses a mail client that is part of Office 365?

    It’s very likely an issue with your client’s email setup. Perhaps messages are being routed to his spam filter?

    What contact form are they using on the website?

    Forum: Fixing WordPress
    In reply to: How to hide a tab?

    Howdy,

    When I visit the address you gave, I don’t think I’m seeing the right stuff, since I am not a logged in user. I tried registering, but currently registration is turned off.

    If you make a test account or turn on registration so I could make a quick test account, I could help you further.

    Thanks!

    Greetings,

    If I understand, you are using pages with sub-pages right now:

    Buy my product
    * * Shop
    * * Account
    * * Whatever

    In the menu on your site, when you click “Buy my product” it just opens the sub-menu to show “Shop, Account, Whatever” instead of taking you to the “Buy my product” page.

    Is that what is happening?
    If so, it sounds like the theme you are using has changed the normal behavior of your dropdown menus — probably to accommodate mobile users.

    First thing to do is change to a more standard theme to see what happens. Try Twenty Fifteen, Twenty Fourteen — any of those. If the menu starts behaving the way you want, then you know it’s an issue with the theme you are trying to use.

    Let me know how it goes, or if I misunderstand what’s happening.

    WordPress is attempting to keep your HTML well-formatted, etc. using:
    https://codex.www.ads-software.com/Function_Reference/wpautop

    There are some plugins you could try to get the behavior you want. The first decent one I found in a hurry was:
    https://www.ads-software.com/plugins/ps-disable-auto-formatting/

    Beware that sometimes such plugins can end up disabling more than you really want disabled. That said, there’s no harm in trying. If this one doesn’t work out try a search for disabling wordpress auto formatting.

    Good luck!

    Howdy,

    While that is not a bug, you can probably get the behavior you want.

    If you put the following line in your theme’s functions.php file:
    add_filter(‘show_admin_bar’, ‘__return_false’);

    This will:
    a. Hide the admin bar on the frontend
    b. Still show the admin bar on the backend / dashboard

    Does this get you what you need?
    Please let me know if this works out.

    Howdy,

    First, it depends on how the plugin is developed. If the plugin versions the database by saving something like a “dbversion” setting whenever the database is updated, then you should be okay. You would go to your production environment and likely find a message that “Your XYZ plugin tables need updated.” The plugin would then execute some db migration script they’d written for that upgrade purpose.
    (This is the way it should be done by plugin devs…)

    If the plugin is not designed like that, then you would be best to just do the updates in the online environment.

    Second, I prefer to have separate git repos for each theme and plugin. As projects age, you’ll probably find it easier to keep things organized. It also makes it much easier to work collaboratively with other developers.

    Hope this helps.

    Hi David,

    If you are using apache httpd web server (you probably are) then you can make a change to the .htaccess file in your site root to help with this.

    You’ll probably find the standard .htaccess file to read:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Back up the .htaccess file first in case something weird happens.
    Then add a line under the first RewriteRule line, so your .htaccess reads as such:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_URI} !^/(webservice/.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Note, the “webservice” is specific to your question. You can change that to whatever ignored directory name you need. You can also specify multiple directories if you need to, such as:
    RewriteCond %{REQUEST_URI} !^/(webservice|anotherservice|bob/.*)$

    Let me know if this works out.

    Jason,
    Man, I’m sorry to hear that! I’ve been in that boat.

    We can’t provide support for purchased themes here in this forum. I can say you’re better off spending some time getting a different theme than you are paying someone to fix your current one. While I’m sure fixing this one error probably wouldn’t entail much, it is a sign that your theme developer has not been thorough and probably made other errors.

    I can say I’ve had good luck searching the themes directory for responsive themes in the past.
    https://www.ads-software.com/themes/

    I hope you get this squared away soon. Good luck!

    Hi Jason,
    I just followed up with another look, and it appears your problem has been fixed.
    At least, that image no longer seems to have its filename changed.

    Are you good-to-go, then?
    Paul

    This could happen for many reasons.
    I’m assuming your site worked at some point.

    What was the last thing you did on your site before it became unavailable?

    Howdy,
    From looking at your site, I’m betting the theme has a setting for “cropping thumbnail to exact size,” which would result in the behavior you’re seeing. In a normal WordPress theme, under Settings > Media, you would find such an option for the “thumbnail” size. By unchecking this box, the site would resize your image proportionally, without cropping anything out.

    I would look for such a setting on your site.
    If it’s anything more complex than that, I recommend getting support from the Headway folks, since it is a paid theme.
    https://headwaythemes.com/

    Good luck!

Viewing 15 replies - 16 through 30 (of 351 total)