Peter Johnson

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Embedding Custom Fields Dynamically #535173

    Peter Johnson
    Full Member
    Post count: 14

    I appreciate your time, but I am still at square one. Even the code you suggested doesn’t fully work. It sounds like your messages could be summed up as… the functionality doesn’t exist, and it would require complex code to be written for each instance of embedding (which could be 40+ just with this project)… but if I’m up for spending a bunch of money, I can pay someone to create this functionality. This is disappointing.

    in reply to: Embedding Custom Fields Dynamically #535081

    Peter Johnson
    Full Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Embedding Custom Fields Dynamically #533188

    Peter Johnson
    Full Member
    Post count: 14

    I’ve read all of the documentation I can find on the Geodirectory site about the CSS Class field. Below is one of the several versions of the shortcode that I tried. It doesn’t seem to be fully changing the CSS to match the surrounding text. It still puts the word on a separate line and it still puts a line below the inserted word. Are you able to see what is wrong with the shortcode below? Is the CSS class wrong if I want it to conform to the CSS of a details/listing page? Thanks for your help.

    CSS Class- Single gd place
    This place is a [gd_post_meta key=”type2″ show=”value” css_class=”single-gd_place”]

    Sources I used to try to figure this out…
    https://wpgeodirectory.com/docs-v2/faq/common-examples/#selectors
    https://wpgeodirectory.com/docs-v2/places/custom/#settings

    in reply to: Embedding Custom Fields Dynamically #533024

    Peter Johnson
    Full Member
    Post count: 14

    I fixed my site. My htaccess file was missing several lines. Everything works now. If you don’t mind taking a third look at my site to help with the original issue, I would be extremely grateful!

    Kor suggested creating custom CSS, which could work. I’m wondering if there is a way to just create something that could be added to the shortcode that strips the embedded custom field of all CSS relationships so it can take on the CSS of the content field containing the shortcode. Anyway, just a thought. I wouldn’t be surprised if this would be useful to other people as well.

    in reply to: Embedding Custom Fields Dynamically #533007

    Peter Johnson
    Full Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Embedding Custom Fields Dynamically #532943

    Peter Johnson
    Full Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Embedding Custom Fields Dynamically #532880

    Peter Johnson
    Full Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Embedding Custom Fields Dynamically #532829

    Peter Johnson
    Full Member
    Post count: 14

    I inserted the following line into a textarea custom field to test the shortcode:
    This place is a [gd_post_meta key=”type” show=”value”].

    It was successful at inserting the type, but it puts the value on a new line rather than on the same line. The output looks like this:
    This place is a
    hotel
    (there is a line here)
    .

    How do I make it look like this:
    This place is a hotel.

    If you are able to answer this question, I should be good to go. Thanks again for all of your help!

    in reply to: Embedding Custom Fields Dynamically #532803

    Peter Johnson
    Full Member
    Post count: 14

    Thanks! In addition to city and region, I’d also like to add text from textarea content fields. (I’m currently working in the gd_place CPT) For example, I want to be able to do something like this…
    [gd_post_meta key=”post_title” show=”value-strip”] is a [type].
    (In this example, “type” is an example of a custom field.)

    Is there a shortcode that can accomplish this? Also, if there is any documentation that exists on this topic, feel free to point me to it so I don’t have to keep bugging you. Thanks for your help!

    in reply to: Not allowing locations to be added #512675

    Peter Johnson
    Full Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Not allowing locations to be added #512590

    Peter Johnson
    Full Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Not allowing locations to be added #512522

    Peter Johnson
    Full Member
    Post count: 14
    This reply has been marked as private.
Viewing 12 posts - 1 through 12 (of 12 total)