Forum Replies Created

Viewing 15 replies - 1 through 15 (of 496 total)
  • C W (VYSO)

    (@cyril-washbrook)

    Set the menu_icon key. If you want to use the in-built icon font, you can find the available icons on this page. The value will be the name of the relevant icon (e.g. dashicons-format-aside).

    C W (VYSO)

    (@cyril-washbrook)

    It looks like you may already have removed the offending code, but my guess is that the error arose because the person in that support thread included an opening <?php tag, and you copied that tag into functions.php.

    In fact, functions.php already has an opening <?php tag, and unless it has been closed (with ?>), putting another opening tag after it will lead to a syntax error.

    Forum: Fixing WordPress
    In reply to: post ID
    C W (VYSO)

    (@cyril-washbrook)

    When you edit a post or page, the URL contains a string that looks like this: post.php?post=123&action=edit. The number after ?post= is the ID.

    C W (VYSO)

    (@cyril-washbrook)

    This is already part of the core. WordPress automatically populates the caption field with the IPTC caption abstract or, if it is absent, the EXIF image description. (I believe it works in that order, but you can verify this through testing.)

    Your success in using this will depend on the file type.

    It will work fine if you are using JPEG files, and there are various ways of going about it: e.g. if you use Windows, you can just right-click on an image and add your desired caption to the “title” field (like this, which leads to this). The title field corresponds to the EXIF image description.

    I have not tested this with PNG files, but I suspect it will not work with PNG. That is because the standard PNG specification does not allow for the embedding of EXIF or IPTC information. (Some software stores metadata in PNG files in a similar way, but as I say, it’s not part of the PNG specification.)

    C W (VYSO)

    (@cyril-washbrook)

    I see no reason to be so resistant to using a plugin.

    First, without looking at which plugins are available, it seems to me that a plugin of this nature would be very lightweight. Whatever your concerns about “bogging the site down”, not all plugins are equal in that respect.

    Secondly, regardless of how lightweight the plugin is, you don’t need to leave it activated permanently. I assume you would be able simply to install the plugin, convert the pages, then uninstall the plugin.

    C W (VYSO)

    (@cyril-washbrook)

    (1) If you are having difficulties accessing your site through FTP, you should contact your host: that’s not a WordPress issue. In the meantime, one possibility is to use the file manager built into CPanel (or whichever interface your host uses).

    (2) As for the particular problem you are experiencing …

    I tried putting a code in the backend of my site

    … you will need to be more specific if you need help on how to fix it.

    C W (VYSO)

    (@cyril-washbrook)

    When a page is shared on Facebook for the first time, Facebook “scrapes” the URL in order to fetch information like titles, descriptions and images. It then caches what it finds.

    When Facebook last attempted to scrape your posts for information, it seems your Facebook sharing settings were not properly configured: Facebook was being told, incorrectly, that the description for each post was the word “Related”.

    I have re-scraped the last couple of posts for you. In other words, I have cleared the relevant part of Facebook’s cache. They should now display properly. You can test them to confirm this.

    If you are experiencing the same problem for any other pages on your site, enter them into Facebook’s URL linter, select “Debug”, then select “Fetch new scrape information”.

    Forum: Fixing WordPress
    In reply to: Read more tags
    C W (VYSO)

    (@cyril-washbrook)

    It looks like you’re using a commercial theme. We don’t support commercial products on these forums. If you’re having difficulties, you need to seek support from the theme developer.

    C W (VYSO)

    (@cyril-washbrook)

    It looks like your site is hosted at WordPress.com. These forums only provide support for self-hosted www.remarpro.com installations. See more about the difference here.

    In order to ask for help, you need to go WordPress.com support.

    C W (VYSO)

    (@cyril-washbrook)

    Conditional statements work sequentially. If the if statement returns true, then the elseif and else statements are ignored. This is because they are alternatives: they are only tested if the earlier condition is not met. Hence the term “else”.

    If you want the second condition to have priority, you need to make it the first condition.

    C W (VYSO)

    (@cyril-washbrook)

    site_url is not a valid value for bloginfo(). See also the documentation. You should be using either home_url() or bloginfo('url').

    C W (VYSO)

    (@cyril-washbrook)

    The value of $gallery is not boolean. That is, it does not evaluate as true or false. You can see this by ticking a checkbox and simply echoing $gallery. You should see that its value is 1.

    You should be able to achieve the desired result simply by removing == true from the if statement. That is, use something like:

    if($gallery) :
       echo 'Show in gallery';
    else :
       echo 'Don't show in gallery';
    endif;

    Broadly speaking, if($variable) will return a positive result if the value is not false and not zero. A more precise explanation can be found in the PHP manual.

    C W (VYSO)

    (@cyril-washbrook)

    When a page is shared on Facebook for the first time, Facebook “scrapes” the URL in order to fetch information like titles, descriptions and images. It then caches what it finds. When Facebook last attempted to scrape your pages for information, your website was down. It therefore could not fetch any data.

    I have re-scraped those two pages for you. In other words, I have cleared the relevant part of Facebook’s cache. They should now display properly.

    If you are experiencing the same problem for any other pages on your site, enter them into Facebook’s URL linter, select “Debug”, then select “Fetch new scrape information”.

    C W (VYSO)

    (@cyril-washbrook)

    No, the functions.php file should be in the directory of your active theme, which in this case is /bizznis. Here it is in a fresh installation of the theme.

    If you are using a child theme (I cannot tell because your site is currently down), you might want to check the directory of both the child theme and the parent theme.

    C W (VYSO)

    (@cyril-washbrook)

    Contrary to jpm123’s advice (though it was given in good faith), I would advise not using the “Edit wp-config.php” method. As the Codex page states, this hardcodes the values into the site and disables the backend settings page. This may create more complications later on.

    Use the “Edit functions.php” method instead. This involves the following steps:

    (1) Access your site using FTP, then go to /wp/themes/bizznis.

    (2) Download the functions.php file, open it in a text editor, and add these as new lines:

    update_option( 'siteurl', 'https://www.centraliahighalumni.com/Home' );
    update_option( 'home', 'https://www.centraliahighalumni.com/Home' );

    (3) Re-upload the edited functions.php file.

    (4) If that fixes the errors, you should now remove the lines added at step 2.

    In addition, I assume you will want to know how to achieve what you were trying to do: i.e. remove /Home from the URL. You can do that by following the instructions on this page (under “Using a pre-existing subdirectory install”).

Viewing 15 replies - 1 through 15 (of 496 total)